/* ════════════════════════════════════════════════
   SPRINTZ-TECH — Shared Stylesheet
   ════════════════════════════════════════════════ */
:root {
  --bg-deep: #060C1A;
  --bg-card: #0D1526;
  --bg-card2: #111B2E;
  --blue: #3B7BFF;
  --blue-light: #6099FF;
  --blue-glow: rgba(59,123,255,0.15);
  --green: #10D9A0;
  --green-glow: rgba(16,217,160,0.12);
  --text-primary: #F0F4FF;
  --text-secondary: #8B9CC8;
  --border: rgba(255,255,255,0.07);
  --gradient-blue: linear-gradient(135deg, #3B7BFF, #0044CC);
  --gradient-green: linear-gradient(135deg, #10D9A0, #0A9E76);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Sarabun', 'Inter', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─── NAV ─────────────────────────────────────── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
  background: rgba(6,12,26,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-icon {
  width: 36px; height: 36px;
  background: var(--gradient-blue);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px; color: white; letter-spacing: -1px;
}
.nav-logo-text { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.nav-links { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-links > li { position: relative; }
.nav-links > li > a, .nav-links > li > .nav-dropdown-trigger {
  text-decoration: none; color: var(--text-secondary);
  font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
  display: flex; align-items: center; gap: 4px;
  transition: color .2s, background .2s; cursor: pointer;
  background: none; border: none; font-family: inherit;
}
.nav-links > li > a:hover,
.nav-links > li > .nav-dropdown-trigger:hover,
.nav-links > li > a.active { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 8px; min-width: 200px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: all .2s;
}
.nav-links > li:hover .nav-dropdown { opacity: 1; pointer-events: all; transform: none; }
.nav-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px; text-decoration: none;
  color: var(--text-secondary); font-size: 13px; transition: all .2s;
}
.nav-dropdown a:hover { background: rgba(59,123,255,0.1); color: var(--text-primary); }
.nav-dropdown a .dd-icon {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  background: rgba(59,123,255,0.1);
}
.chevron { font-size: 10px; transition: transform .2s; }
.nav-links > li:hover .chevron { transform: rotate(180deg); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.btn-nav {
  background: var(--gradient-blue); color: white;
  font-size: 13px; font-weight: 600; padding: 8px 18px;
  border-radius: 8px; text-decoration: none; border: none; cursor: pointer;
  transition: opacity .2s;
}
.btn-nav:hover { opacity: 0.85; }
.btn-nav-login {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-secondary); font-size: 13px; font-weight: 600;
  padding: 7px 16px; border-radius: 8px; text-decoration: none;
  transition: all .2s; white-space: nowrap;
}
.btn-nav-login:hover { border-color: var(--blue); color: var(--blue); background: rgba(59,123,255,0.08); }
.lang-toggle-btn {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-secondary); font-size: 12px; font-weight: 700;
  padding: 7px 12px; border-radius: 100px; cursor: pointer; white-space: nowrap;
  transition: all .2s; font-family: inherit;
}
.lang-toggle-btn:hover { border-color: var(--blue); color: var(--blue); background: rgba(59,123,255,0.08); }

/* ─── PAGE HERO (inner pages) ─────────────────── */
.page-hero {
  padding: 140px 40px 80px; text-align: center;
  position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(59,123,255,0.1) 0%, transparent 70%);
}
.page-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(59,123,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,123,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}
.page-hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.page-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(59,123,255,0.1); border: 1px solid rgba(59,123,255,0.25);
  padding: 5px 14px; border-radius: 100px; font-size: 11px;
  color: var(--blue-light); font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 20px;
}
.page-hero h1 {
  font-size: clamp(28px, 5vw, 52px); font-weight: 900; line-height: 1.1; margin-bottom: 16px;
}
.page-hero p {
  font-size: 16px; color: var(--text-secondary); line-height: 1.7;
}

/* ─── SHARED LAYOUT ───────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 40px; }
.section { padding: 80px 0; }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--blue); margin-bottom: 10px;
}
.section-title {
  font-size: clamp(24px, 4vw, 38px); font-weight: 800; margin-bottom: 14px;
}
.section-desc { color: var(--text-secondary); font-size: 15px; line-height: 1.7; }

/* ─── CARD ────────────────────────────────────── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
  transition: border-color .3s, transform .3s;
}
.card:hover { border-color: rgba(59,123,255,0.2); }

/* ─── BUTTONS ─────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gradient-blue); color: white;
  font-size: 14px; font-weight: 700; padding: 12px 28px;
  border-radius: 10px; text-decoration: none; border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(59,123,255,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(59,123,255,0.4); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--text-primary); font-size: 14px; font-weight: 600;
  padding: 12px 28px; border-radius: 10px; text-decoration: none;
  transition: all .2s; cursor: pointer; font-family: inherit;
}
.btn-secondary:hover { background: rgba(255,255,255,0.09); }

/* ─── BADGE ───────────────────────────────────── */
.badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 4px;
}
.badge-blue { background: rgba(59,123,255,0.12); color: var(--blue-light); }
.badge-green { background: rgba(16,217,160,0.1); color: var(--green); }
.badge-orange { background: rgba(251,146,60,0.12); color: #FB923C; }

/* ─── DIVIDER ─────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ─── FOOTER ──────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  padding: 60px 40px 0;
}
.footer-main {
  max-width: 1160px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand {}
.footer-brand-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; text-decoration: none; }
.footer-logo-icon {
  width: 36px; height: 36px;
  padding: 2px; background: white;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.footer-logo-icon img { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 6px; }
.footer-logo-text { font-size: 15px; font-weight: 800; color: var(--text-primary); }
.footer-brand-desc {
  font-size: 13px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 20px;
}
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; line-height: 1.5;
}
.footer-contact-item a { color: var(--text-secondary); text-decoration: none; transition: color .2s; }
.footer-contact-item a:hover { color: var(--blue-light); }
.footer-col-title {
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-primary);
  margin-bottom: 20px;
}
.footer-col-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col-links a {
  font-size: 13px; color: var(--text-secondary); text-decoration: none; transition: color .2s;
  display: flex; align-items: center; gap: 6px;
}
.footer-col-links a:hover { color: var(--text-primary); }
.footer-col-links a::before { content: '→'; font-size: 11px; color: var(--blue); opacity: 0; transition: opacity .2s, transform .2s; transform: translateX(-4px); }
.footer-col-links a:hover::before { opacity: 1; transform: none; }
.footer-bottom {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer-copy { font-size: 12px; color: var(--text-secondary); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 12px; color: var(--text-secondary); text-decoration: none; transition: color .2s; }
.footer-bottom-links a:hover { color: var(--text-primary); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; text-decoration: none; transition: all .2s;
  color: var(--text-secondary);
}
.footer-social a:hover { border-color: var(--blue); background: rgba(59,123,255,0.1); }

/* ─── FOOTER MAP ───────────────────────────────── */
.footer-map-row { grid-column: 1 / -1; margin-top: 8px; display: none; }
.footer-map-row iframe { width: 100%; height: 220px; border: 0; border-radius: 12px; opacity: 0.85; filter: invert(0.9) hue-rotate(180deg); }

/* ─── FADE IN ─────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.fade-in.visible { opacity: 1; transform: none; }

/* ─── MOBILE NAV HAMBURGER ─────────────────────── */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 38px; background: none; border: none; cursor: pointer;
  flex-shrink: 0; padding: 0;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: .25s; }
nav.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
nav.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── RESPONSIVE ──────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0 16px; flex-wrap: wrap; }
  nav.nav-open { height: auto; max-height: 90vh; overflow-y: auto; background: rgba(6,12,26,0.98); }
  .nav-hamburger { display: flex; order: 1; }
  .nav-links {
    order: 2; width: 100%; flex-direction: column; align-items: stretch; gap: 2px;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .3s ease, opacity .2s ease;
  }
  .nav-cta {
    order: 3; width: 100%; flex-direction: column; align-items: stretch; gap: 10px;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .3s ease, opacity .2s ease;
  }
  nav.nav-open .nav-links { max-height: 60vh; overflow-y: auto; opacity: 1; padding: 10px 0; }
  nav.nav-open .nav-cta { max-height: 200px; opacity: 1; padding: 14px 0 16px; border-top: 1px solid var(--border); margin-top: 4px; }
  .nav-links > li { width: 100%; }
  .nav-links > li > a, .nav-links > li > .nav-dropdown-trigger { width: 100%; padding: 12px 8px; }
  .nav-dropdown {
    position: static; opacity: 1; pointer-events: none; transform: none;
    display: none; box-shadow: none; border: none; margin-left: 10px; min-width: 0;
  }
  .nav-links > li.dd-open .nav-dropdown { display: block; pointer-events: all; }
  .nav-cta .btn-nav, .nav-cta .btn-nav-login { width: 100%; justify-content: center; text-align: center; }
  .nav-login-wrap { width: 100%; }
  .nav-login-menu {
    position: static; opacity: 1; pointer-events: none; transform: none;
    display: none; box-shadow: none; border: none; margin-top: 6px; min-width: 0;
  }
  .nav-login-wrap.open .nav-login-menu { display: block; pointer-events: all; }

  .container { padding: 0 20px; }
  .page-hero { padding: 120px 20px 60px; }
  .section { padding: 60px 0; }
  .site-footer { padding: 48px 20px 0; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 480px) {
  .footer-main { grid-template-columns: 1fr; }
}

/* ─── LOGIN DROPDOWN ──────────────────────────── */
.nav-login-wrap { position: relative; }
.nav-login-wrap:hover .nav-login-menu,
.nav-login-wrap:focus-within .nav-login-menu { opacity: 1; pointer-events: all; transform: none; }
.nav-login-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 8px; min-width: 220px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: all .2s; z-index: 200;
}
.nav-login-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px; text-decoration: none;
  color: var(--text-secondary); font-size: 13px; transition: all .2s;
}
.nav-login-item:hover { background: rgba(59,123,255,0.1); color: var(--text-primary); }
.nav-login-icon {
  width: 30px; height: 30px; border-radius: 7px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  background: rgba(59,123,255,0.1);
}
.nav-login-label { font-weight: 600; font-size: 13px; }
.nav-login-sub { font-size: 11px; color: var(--text-secondary); margin-top: 1px; }
