/* ============================================
   Bangkok Skyline Travel Guide — Style Sheet
   ============================================ */

:root {
  --primary: #1a3a5c;
  --primary-light: #2a5a8c;
  --primary-dark: #0e2240;
  --accent: #d4a853;
  --accent-light: #e8c878;
  --accent-dark: #b8903a;
  --bg: #f8f6f2;
  --bg-alt: #ffffff;
  --bg-dark: #111827;
  --text: #1f2937;
  --text-light: #6b7280;
  --text-inverse: #f9fafb;
  --border: #e5e7eb;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: .3s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-thai: 'Sarabun', 'Noto Sans Thai', sans-serif;
  --max-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

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

body[data-lang="th"] { font-family: var(--font-thai), var(--font); }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---- Animations ---- */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============ NAVIGATION ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), background var(--transition);
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.1); }
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--primary); }
.nav-brand i { width: 28px; height: 28px; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--text); transition: color var(--transition); }
.nav-links a:hover { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
#langBtn {
  background: var(--primary); color: #fff; border: none; padding: 6px 14px;
  border-radius: 6px; font-size: .8rem; font-weight: 600; cursor: pointer;
  transition: background var(--transition);
}
#langBtn:hover { background: var(--primary-light); }
.hamburger {
  display: none; background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger i { width: 24px; height: 24px; color: var(--text); }

/* Mobile nav */
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,.98); backdrop-filter: blur(12px);
  z-index: 999; padding: 32px 24px; flex-direction: column; gap: 20px;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  font-size: 1.1rem; font-weight: 500; color: var(--text); padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 90vh; display: flex; align-items: center;
  justify-content: center; overflow: hidden; margin-top: 64px;
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: brightness(.55);
}
.hero-content {
  position: relative; z-index: 2; text-align: center; color: #fff; padding: 40px 24px;
  max-width: 800px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
  padding: 8px 20px; border-radius: 50px; font-size: .85rem; font-weight: 500;
  margin-bottom: 24px; border: 1px solid rgba(255,255,255,.2);
}
.hero-badge i { width: 16px; height: 16px; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.15;
  margin-bottom: 16px; letter-spacing: -.02em;
}
.hero-subtitle { font-size: 1.15rem; opacity: .9; margin-bottom: 32px; line-height: 1.6; }
.hero-location {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .95rem; opacity: .8;
}
.hero-location i { width: 18px; height: 18px; }
.hero-stats {
  display: flex; justify-content: center; gap: 40px; margin-top: 40px; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-value { font-size: 1.8rem; font-weight: 800; color: var(--accent-light); }
.hero-stat-label { font-size: .8rem; opacity: .7; margin-top: 4px; }

/* ============ SECTION COMMON ============ */
section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent-dark); margin-bottom: 12px;
}
.section-label i { width: 16px; height: 16px; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: var(--primary-dark); margin-bottom: 16px; }
.section-desc { font-size: 1.05rem; color: var(--text-light); max-width: 640px; margin: 0 auto; line-height: 1.7; }

/* ============ INTRO ============ */
.intro { background: var(--bg-alt); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.intro-text p { margin-bottom: 16px; color: var(--text); line-height: 1.8; font-size: 1.02rem; }
.intro-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card {
  background: var(--bg); border-radius: var(--radius-sm); padding: 24px; text-align: center;
  border: 1px solid var(--border); transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-card i { width: 28px; height: 28px; color: var(--accent); margin-bottom: 8px; }
.stat-card .stat-value { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.stat-card .stat-label { font-size: .8rem; color: var(--text-light); margin-top: 4px; }

/* ============ ARTICLES ============ */
.articles { background: var(--bg); }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card {
  background: var(--bg-alt); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); transition: transform var(--transition), box-shadow var(--transition);
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.article-img {
  height: 200px; overflow: hidden; position: relative;
}
.article-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.article-card:hover .article-img img { transform: scale(1.08); }
.article-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: #fff; font-size: .7rem; font-weight: 600;
  padding: 4px 12px; border-radius: 50px; text-transform: uppercase; letter-spacing: .05em;
}
.article-body { padding: 24px; }
.article-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 10px; line-height: 1.4; }
.article-excerpt { font-size: .92rem; color: var(--text-light); line-height: 1.6; margin-bottom: 16px; }
.article-full { display: none; font-size: .92rem; color: var(--text); line-height: 1.8; margin-bottom: 16px; }
.article-full.expanded { display: block; }
.article-toggle {
  background: none; border: none; color: var(--accent-dark); font-weight: 600;
  font-size: .85rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: color var(--transition);
}
.article-toggle:hover { color: var(--primary); }
.article-toggle i { width: 16px; height: 16px; transition: transform var(--transition); }
.article-toggle.active i { transform: rotate(180deg); }
.article-meta { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.article-meta span { font-size: .78rem; color: var(--text-light); display: flex; align-items: center; gap: 4px; }
.article-meta i { width: 14px; height: 14px; }

/* ============ TIPS ============ */
.tips { background: var(--bg-alt); }
.tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tip-card {
  padding: 32px; border-radius: var(--radius); background: var(--bg);
  border: 1px solid var(--border); transition: transform var(--transition), box-shadow var(--transition);
}
.tip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tip-icon {
  width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.tip-icon i { width: 24px; height: 24px; color: #fff; }
.tip-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 10px; }
.tip-card p { font-size: .9rem; color: var(--text-light); line-height: 1.6; }

/* ============ SEASONAL ============ */
.seasonal { background: var(--bg); }
.seasonal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.season-card {
  border-radius: var(--radius); overflow: hidden; position: relative;
  background: var(--bg-alt); border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.season-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.season-header {
  padding: 28px 24px; text-align: center; color: #fff; position: relative;
}
.season-header.hot { background: linear-gradient(135deg, #e74c3c, #f39c12); }
.season-header.rainy { background: linear-gradient(135deg, #2980b9, #6dd5fa); }
.season-header.cool { background: linear-gradient(135deg, #1a3a5c, #2a5a8c); }
.season-header.transition { background: linear-gradient(135deg, #d4a853, #e8c878); color: var(--primary-dark); }
.season-header i { width: 36px; height: 36px; margin-bottom: 12px; }
.season-header h3 { font-size: 1.1rem; font-weight: 700; }
.season-header .season-months { font-size: .8rem; opacity: .85; margin-top: 4px; }
.season-body { padding: 24px; }
.season-body p { font-size: .88rem; color: var(--text-light); line-height: 1.6; }
.season-temp {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  font-size: .85rem; font-weight: 600; color: var(--primary);
}
.season-temp i { width: 16px; height: 16px; color: var(--accent); }

/* ============ NEWSLETTER ============ */
.newsletter {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; position: relative; overflow: hidden;
}
.newsletter::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(212,168,83,.15), transparent 70%);
  border-radius: 50%;
}
.newsletter-inner {
  max-width: 600px; margin: 0 auto; text-align: center; position: relative; z-index: 2;
}
.newsletter h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.newsletter p { opacity: .85; margin-bottom: 32px; font-size: 1.02rem; }
.form-group { margin-bottom: 16px; text-align: left; }
.form-group label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 6px; opacity: .9; }
.form-group input, .form-group select {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1);
  color: #fff; font-size: .95rem; font-family: inherit;
  transition: border-color var(--transition), background var(--transition);
}
.form-group input::placeholder { color: rgba(255,255,255,.5); }
.form-group input:focus, .form-group select:focus {
  outline: none; border-color: var(--accent); background: rgba(255,255,255,.15);
}
.form-group select option { color: var(--text); background: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.consent-group { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0; }
.consent-group input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0;
}
.consent-group label { font-size: .82rem; opacity: .8; line-height: 1.5; cursor: pointer; }
.btn-submit {
  width: 100%; padding: 14px; border: none; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: background var(--transition), transform var(--transition);
  font-family: inherit;
}
.btn-submit:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.form-success {
  display: none; text-align: center; padding: 40px 0;
}
.form-success.active { display: block; }
.form-success i { width: 56px; height: 56px; color: var(--accent-light); margin-bottom: 16px; }
.form-success h3 { font-size: 1.4rem; margin-bottom: 8px; }
.form-success p { opacity: .8; }

/* ============ FAQ ============ */
.faq { background: var(--bg-alt); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 12px; overflow: hidden; transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-question {
  width: 100%; padding: 20px 24px; background: var(--bg-alt); border: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; font-size: 1rem; font-weight: 600; color: var(--primary-dark);
  text-align: left; font-family: inherit; transition: background var(--transition);
}
.faq-question:hover { background: var(--bg); }
.faq-question i { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); transition: transform var(--transition); }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s ease;
}
.faq-item.active .faq-answer { max-height: 400px; }
.faq-answer-inner { padding: 0 24px 20px; font-size: .92rem; color: var(--text-light); line-height: 1.7; }

/* ============ FOOTER ============ */
.footer { background: var(--bg-dark); color: var(--text-inverse); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand { }
.footer-brand-name { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.footer-brand-name i { width: 24px; height: 24px; color: var(--accent); }
.footer-brand p { font-size: .88rem; opacity: .6; line-height: 1.6; }
.footer-col h4 { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; color: var(--accent-light); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: .88rem; opacity: .6; transition: opacity var(--transition); }
.footer-col a:hover { opacity: 1; color: var(--accent-light); }
.footer-disclaimer {
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .78rem; opacity: .4; text-align: center; line-height: 1.6;
}

/* ============ LEGAL PAGES ============ */
.legal-page { margin-top: 64px; padding: 60px 0; min-height: calc(100vh - 200px); }
.legal-page .container { max-width: 800px; }
.legal-page h1 { font-size: 2rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 8px; }
.legal-page .legal-updated { font-size: .85rem; color: var(--text-light); margin-bottom: 32px; }
.legal-page h2 { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-top: 32px; margin-bottom: 12px; }
.legal-page h3 { font-size: 1.1rem; font-weight: 600; color: var(--primary-dark); margin-top: 24px; margin-bottom: 8px; }
.legal-page p { margin-bottom: 16px; line-height: 1.8; color: var(--text); }
.legal-page ul { margin-bottom: 16px; padding-left: 24px; }
.legal-page li { margin-bottom: 8px; line-height: 1.7; color: var(--text); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .seasonal-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .intro-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .seasonal-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  section { padding: 56px 0; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .intro-stats { grid-template-columns: 1fr; }
  .nav-inner { padding: 0 16px; }
  .container { padding: 0 16px; }
}
