/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: #fafaf8;
  color: #2c2c2c;
  line-height: 1.7;
  font-size: 16px;
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; color: #1a2744; line-height: 1.3; }
h1 { font-size: 2.2rem; margin-bottom: 1rem; }
h2 { font-size: 1.6rem; margin: 2rem 0 1rem; border-bottom: 2px solid #c8a464; padding-bottom: 0.4rem; }
h3 { font-size: 1.25rem; margin: 1.5rem 0 0.75rem; color: #3a4a6b; }
p { margin-bottom: 1rem; }
a { color: #1a2744; text-decoration: underline; text-decoration-color: #c8a464; text-underline-offset: 3px; }
a:hover { color: #c8a464; }
strong { color: #1a2744; }
ul, ol { margin: 0 0 1rem 1.5rem; }
li { margin-bottom: 0.4rem; }

/* ============ LAYOUT ============ */
.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }
main { padding: 2rem 0 3rem; }
main .container { min-height: 60vh; }

/* ============ HEADER ============ */
.site-header {
  background: #1a2744;
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.logo span { color: #c8a464; }
.logo-img { height: 34px; width: auto; margin-right: 8px; vertical-align: middle; border-radius: 4px; }

/* Desktop Nav */
.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.nav-links li { margin: 0; }
.nav-links a {
  color: #ccd4e0;
  text-decoration: none;
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-links a.active { background: rgba(200,164,100,0.2); color: #c8a464; font-weight: 600; }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.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;
  background: #1a2744;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 14px 20px;
  color: #ccd4e0;
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-nav a:hover, .mobile-nav a.active { background: rgba(200,164,100,0.15); color: #c8a464; }

/* ============ HERO ============ */
.hero {
  background: linear-gradient(135deg, #1a2744 0%, #2d3f63 100%);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}
.hero h1 { color: #fff; font-size: 2.4rem; margin-bottom: 1rem; }
.hero p { color: #c0c8d8; font-size: 1.1rem; max-width: 600px; margin: 0 auto 1.5rem; }
.hero-badge {
  display: inline-block;
  background: rgba(200,164,100,0.2);
  color: #c8a464;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(200,164,100,0.3);
}

/* ============ CARDS ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.card {
  background: #fff;
  border: 1px solid #e8e4dc;
  border-radius: 10px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border-color: #c8a464;
}
.card-icon { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
.card h3 { font-size: 1.1rem; margin: 0 0 0.5rem; color: #1a2744; }
.card p { font-size: 0.9rem; color: #666; margin: 0; }

/* ============ TABLES ============ */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: 8px; border: 1px solid #e0dcd4; }
table { width: 100%; border-collapse: collapse; min-width: 500px; background: #fff; }
thead { background: #1a2744; color: #fff; }
th { padding: 12px 16px; text-align: left; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; }
td { padding: 11px 16px; border-bottom: 1px solid #eee; font-size: 0.92rem; }
tbody tr:hover { background: #f8f6f2; }
tbody tr:last-child td { border-bottom: none; }
td:first-child { font-weight: 600; color: #1a2744; }

/* ============ FAQ ============ */
.faq-item { border: 1px solid #e8e4dc; border-radius: 8px; margin-bottom: 0.75rem; background: #fff; }
.faq-q {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: #1a2744;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}
.faq-q::after { content: "+"; font-size: 1.3rem; color: #c8a464; transition: transform 0.3s; flex-shrink: 0; margin-left: 1rem; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 1.25rem; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 1.25rem 1rem; }
.faq-a p { font-size: 0.92rem; color: #555; margin: 0; }

/* ============ CTA BOX ============ */
.cta-box {
  background: linear-gradient(135deg, #1a2744, #2d3f63);
  color: #fff;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  margin: 2.5rem 0;
}
.cta-box h3 { color: #fff; margin-bottom: 0.75rem; }
.cta-box p { color: #c0c8d8; margin-bottom: 1.25rem; }
.cta-btn {
  display: inline-block;
  background: #c8a464;
  color: #1a2744;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s;
}
.cta-btn:hover { background: #d4b574; color: #1a2744; }

/* ============ INFO BOX ============ */
.info-box {
  background: #fff;
  border-left: 4px solid #c8a464;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
}

/* ============ STEP LIST ============ */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.5rem 0; }
.steps li {
  counter-increment: step;
  padding: 1rem 1.25rem 1rem 3.5rem;
  background: #fff;
  border: 1px solid #e8e4dc;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  position: relative;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 28px;
  height: 28px;
  background: #c8a464;
  color: #1a2744;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ BREADCRUMB ============ */
.breadcrumb { font-size: 0.82rem; color: #888; margin-bottom: 1.5rem; }
.breadcrumb a { color: #888; text-decoration: none; }
.breadcrumb a:hover { color: #c8a464; }

/* ============ FOOTER ============ */
.site-footer {
  background: #1a2744;
  color: #8a94a8;
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid h4 { color: #c8a464; font-size: 0.9rem; margin-bottom: 0.75rem; font-family: system-ui, sans-serif; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-grid p { font-size: 0.85rem; line-height: 1.6; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.4rem; }
.footer-grid a { color: #8a94a8; text-decoration: none; font-size: 0.85rem; }
.footer-grid a:hover { color: #c8a464; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.25rem;
  font-size: 0.8rem;
  text-align: center;
}

/* ============ APP PROMOTION ============ */
.app-fab {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #1a2744;
  color: #fff;
  padding: 12px 22px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 9999;
  transition: transform 0.2s;
}
.app-fab:hover { transform: scale(1.05); color: #fff; }
.app-fab-icon { font-size: 16px; }

.desktop-qr-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 18px;
  z-index: 9999;
  text-align: center;
  width: 200px;
  font-family: system-ui, sans-serif;
  transition: transform 0.2s, box-shadow 0.2s;
}
.desktop-qr-widget:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.22); }
.desktop-qr-widget img { width: 140px; height: 140px; border-radius: 8px; margin-bottom: 10px; }
.desktop-qr-widget .qr-title { font-size: 13px; font-weight: 700; color: #1a2744; margin-bottom: 4px; }
.desktop-qr-widget .qr-sub { font-size: 11px; color: #666; line-height: 1.3; }
.desktop-qr-widget .qr-badge { display: inline-block; background: #1a2744; color: #fff; font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 20px; margin-top: 8px; }

#app-alert-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 999999;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn 0.3s;
}
#app-alert-box {
  background: #fff; margin: 0 12px 24px; padding: 24px;
  border-radius: 20px; max-width: 380px; width: 100%;
  animation: slideUp 0.35s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(100px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ============ BLOG LISTING ============ */
.blog-list { list-style: none; padding: 0; margin: 2rem 0; }
.blog-item {
  background: #fff;
  border: 1px solid #e8e4dc;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}
.blog-item:hover { border-color: #c8a464; }
.blog-item h3 { margin: 0 0 0.5rem; }
.blog-item h3 a { text-decoration: none; color: #1a2744; }
.blog-item h3 a:hover { color: #c8a464; }
.blog-meta { font-size: 0.82rem; color: #888; margin-bottom: 0.5rem; }
.blog-excerpt { font-size: 0.92rem; color: #555; margin: 0; }

/* ============ BLOG POST ============ */
.post-header { margin-bottom: 2rem; }
.post-header h1 { margin-bottom: 0.5rem; }
.post-meta { font-size: 0.85rem; color: #888; }
.post-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 1.5rem 0; }
.post-content figure { margin: 1.5rem 0; }
.post-content figcaption { font-size: 0.82rem; color: #888; text-align: center; margin-top: 0.5rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links { display: none; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  .hero { padding: 2.5rem 0; }
  .hero h1 { font-size: 1.9rem; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .header-inner { height: 54px; }
  .logo { font-size: 1rem; }
}
