/* FIRSTEC Multilingual Site - Common Stylesheet */
:root {
  --deep-blue: #0a3d91;
  --accent-blue: #1e6fd9;
  --gold: #d4a017;
  --white: #ffffff;
  --light-gray: #f5f7fa;
  --mid-gray: #6b7280;
  --dark-gray: #1f2a44;
  --border-gray: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark-gray);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { font-family: 'Inter', 'Noto Sans KR', sans-serif; }
html[lang="ja"] body { font-family: 'Noto Sans JP', 'Inter', sans-serif; }
html[lang="zh-CN"] body { font-family: 'Noto Sans SC', 'Inter', sans-serif; }

a { color: var(--accent-blue); text-decoration: none; }
a:hover { color: var(--deep-blue); }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Top Bar ===== */
.topbar {
  background: var(--dark-gray);
  color: #cbd5e1;
  font-size: 0.82rem;
  padding: 8px 0;
}
.topbar .container { display: flex; gap: 24px; flex-wrap: wrap; justify-content: flex-end; }
.topbar div { display: flex; align-items: center; gap: 6px; }

/* ===== Header ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border-gray);
  position: sticky; top: 0; z-index: 100;
  transition: box-shadow 0.2s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  gap: 20px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--deep-blue); font-weight: 900; font-size: 1.3rem;
  letter-spacing: -0.5px;
}
.brand .brand-mark {
  width: 40px; height: 40px; border-radius: 8px;
  background: linear-gradient(135deg, var(--deep-blue), var(--accent-blue));
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; font-weight: 900;
}
.brand-logo-img {
  height: 44px; width: auto; display: block;
  transition: transform 0.25s ease;
}
.brand:hover .brand-logo-img { transform: scale(1.04); }
.brand-text { font-size: 1.05rem; }
.footer-logo-img {
  height: 56px; width: auto; display: block;
  margin-bottom: 14px; filter: brightness(1.1);
}
.main-nav { display: flex; gap: 6px; align-items: center; flex: 1; justify-content: center; }
.main-nav a {
  color: var(--dark-gray); font-weight: 600; padding: 8px 14px;
  border-radius: 6px; font-size: 0.95rem;
  transition: all 0.2s;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--light-gray); color: var(--deep-blue);
}
.nav-cta {
  background: var(--deep-blue); color: var(--white) !important;
  padding: 9px 18px !important;
}
.nav-cta:hover { background: var(--accent-blue) !important; }

/* ===== Language Switcher ===== */
.lang-switch { display: flex; align-items: center; gap: 4px; }
.lang-switch .globe { color: var(--mid-gray); margin-right: 4px; }
.lang-switch a {
  font-size: 0.82rem; font-weight: 700;
  padding: 6px 10px; border-radius: 5px;
  border: 1px solid var(--border-gray);
  color: var(--mid-gray);
  transition: all 0.18s;
}
.lang-switch a:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.lang-switch a.current {
  background: var(--deep-blue); color: var(--white);
  border-color: var(--deep-blue);
}
.menu-toggle {
  display: none; background: none; border: 0; font-size: 1.5rem;
  cursor: pointer; color: var(--deep-blue);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #f0f5ff 0%, #ffffff 60%);
  padding: 80px 0 100px;
  position: relative; overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.hero .label {
  display: inline-block; color: var(--accent-blue); font-size: 0.82rem;
  font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 2.8rem; line-height: 1.25; color: var(--dark-gray);
  font-weight: 900; margin-bottom: 20px; letter-spacing: -1px;
}
.hero h1 .accent { color: var(--deep-blue); }
.hero p.lead { font-size: 1.05rem; color: var(--mid-gray); margin-bottom: 28px; max-width: 540px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 6px;
  font-weight: 700; font-size: 0.95rem; transition: all 0.2s;
}
.btn-primary { background: var(--deep-blue); color: white !important; }
.btn-primary:hover { background: var(--accent-blue); transform: translateY(-1px); }
.btn-outline { border: 2px solid var(--deep-blue); color: var(--deep-blue) !important; }
.btn-outline:hover { background: var(--deep-blue); color: white !important; }

.hero-grid-visual {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
  aspect-ratio: 1; max-width: 420px; margin-left: auto;
  background: white; padding: 16px; border-radius: 16px;
  box-shadow: var(--shadow-lg);
}
.hero-grid-visual .cell { background: var(--light-gray); border-radius: 4px; }
.hero-grid-visual .cell.pkg { background: var(--accent-blue); }
.hero-grid-visual .cell.shuttle { background: var(--gold); }

/* ===== Stat Bar ===== */
.stat-bar {
  background: var(--deep-blue); color: white;
  padding: 28px 0;
}
.stat-bar .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-bar .num { font-size: 2.2rem; font-weight: 900; color: var(--gold); display: block; }
.stat-bar .lbl { font-size: 0.88rem; opacity: 0.9; margin-top: 4px; }

/* ===== Sections ===== */
section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 50px; }
.section-head .label {
  color: var(--accent-blue); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; display: block;
}
.section-head h2 {
  font-size: 2.1rem; color: var(--dark-gray); font-weight: 900;
  letter-spacing: -0.8px; line-height: 1.3;
}
.section-head p { color: var(--mid-gray); margin-top: 14px; max-width: 640px; margin-left: auto; margin-right: auto; }

.bg-light { background: var(--light-gray); }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

.card {
  background: white; border-radius: 10px; padding: 28px;
  border: 1px solid var(--border-gray); transition: all 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent-blue); }
.card .icon {
  width: 48px; height: 48px; border-radius: 8px;
  background: linear-gradient(135deg, var(--deep-blue), var(--accent-blue));
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 14px; font-weight: 900;
}
.card h3 { font-size: 1.12rem; margin-bottom: 10px; color: var(--dark-gray); }
.card p { color: var(--mid-gray); font-size: 0.93rem; }

/* Shuttle highlight */
.shuttle-highlight { background: linear-gradient(135deg, #0a3d91 0%, #1e6fd9 100%); color: white; padding: 80px 0; }
.shuttle-highlight .container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.shuttle-highlight h2 { color: white; font-size: 2rem; line-height: 1.3; margin-bottom: 18px; }
.shuttle-highlight ul { list-style: none; margin: 24px 0; }
.shuttle-highlight ul li {
  padding: 10px 0; padding-left: 28px; position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.shuttle-highlight ul li::before {
  content: '✓'; position: absolute; left: 0; top: 10px;
  color: var(--gold); font-weight: 900;
}
.shuttle-highlight .btn-primary { background: var(--gold); color: var(--dark-gray) !important; }
.shuttle-highlight .btn-primary:hover { background: white; }

/* Clients */
.client-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
.client-grid .client {
  background: white; padding: 22px 12px; border-radius: 8px;
  text-align: center; font-weight: 700; color: var(--deep-blue);
  border: 1px solid var(--border-gray); font-size: 0.9rem;
  transition: all 0.2s;
}
.client-grid .client:hover { background: var(--deep-blue); color: white; transform: translateY(-2px); }

/* CTA banner */
.cta-banner { background: var(--dark-gray); color: white; text-align: center; padding: 70px 0; }
.cta-banner h2 { font-size: 1.9rem; margin-bottom: 14px; color: white; }
.cta-banner p { color: #cbd5e1; margin-bottom: 26px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ===== Page sub-hero ===== */
.page-hero {
  background: linear-gradient(135deg, #0a3d91 0%, #1e6fd9 100%);
  color: white; padding: 70px 0 60px;
}
.page-hero .label { color: var(--gold); font-size: 0.82rem; font-weight: 700; letter-spacing: 2px; }
.page-hero h1 { font-size: 2.4rem; margin-top: 10px; }
.page-hero .breadcrumb { margin-top: 16px; font-size: 0.9rem; opacity: 0.85; }
.page-hero .breadcrumb a { color: white; }

/* Tables */
.table { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-sm); }
.table th, .table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border-gray); font-size: 0.95rem; }
.table th { background: var(--light-gray); font-weight: 700; color: var(--deep-blue); width: 18%; }

/* Timeline */
.timeline { border-left: 3px solid var(--accent-blue); padding-left: 24px; margin: 30px 0; }
.timeline-item { margin-bottom: 28px; position: relative; }
.timeline-item::before {
  content: ''; position: absolute; left: -33px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent-blue); border: 3px solid white; box-shadow: 0 0 0 2px var(--accent-blue);
}
.timeline-item .year { font-weight: 900; color: var(--deep-blue); font-size: 1.05rem; margin-bottom: 8px; }
.timeline-item ul { list-style: none; }
.timeline-item ul li { padding: 5px 0; color: var(--mid-gray); font-size: 0.94rem; }
.timeline-item ul li strong { color: var(--dark-gray); }

/* Comparison table */
.compare-table th { background: var(--deep-blue); color: white; }
.compare-table td:first-child { font-weight: 700; background: var(--light-gray); }
.compare-table .highlight { background: #fff8e1; }

/* Form */
.contact-form { background: white; padding: 36px; border-radius: 12px; box-shadow: var(--shadow-md); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.92rem; color: var(--dark-gray); }
.form-group label .req { color: #e53935; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border-gray);
  border-radius: 6px; font-size: 0.95rem; font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent-blue);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.privacy-box {
  background: var(--light-gray); padding: 18px; border-radius: 6px;
  font-size: 0.85rem; color: var(--mid-gray); margin-bottom: 16px; line-height: 1.7;
}
.checkbox-group { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 20px; }
.checkbox-group input { width: auto; margin-top: 4px; }

/* ===== Footer ===== */
.site-footer { background: var(--dark-gray); color: #cbd5e1; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { color: white; font-size: 0.95rem; margin-bottom: 14px; font-weight: 700; }
.footer-grid a { color: #cbd5e1; display: block; padding: 4px 0; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand .logo { color: white; font-size: 1.3rem; font-weight: 900; margin-bottom: 8px; }
.footer-brand .eng { font-size: 0.85rem; opacity: 0.8; margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; opacity: 0.85; }
.footer-info { font-size: 0.85rem; line-height: 1.9; }
.footer-info strong { color: white; }
.footer-langs a { display: inline-block; margin-right: 8px; padding: 5px 10px; border: 1px solid #475569; border-radius: 4px; font-size: 0.85rem; }
.footer-langs a:hover, .footer-langs a.current { background: var(--accent-blue); color: white; border-color: var(--accent-blue); }
.footer-bottom { border-top: 1px solid #334155; padding-top: 20px; text-align: center; font-size: 0.82rem; opacity: 0.7; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 2.2rem; }
  .stat-bar .container { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .shuttle-highlight .container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .client-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .topbar { font-size: 0.75rem; }
  .topbar .container { justify-content: center; gap: 12px; }
  .nav-wrap { padding: 12px 16px; gap: 8px; flex-wrap: wrap; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: white; flex-direction: column; padding: 14px; gap: 4px;
    border-bottom: 1px solid var(--border-gray); box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; text-align: left; }
  .lang-switch { order: 2; gap: 2px; }
  .lang-switch a { padding: 4px 7px; font-size: 0.72rem; }
  .lang-switch .globe { display: none; }
  .brand-logo-img { height: 36px; }
  .brand-text { display: none; }
  .footer-logo-img { height: 46px; }
  .hero { padding: 50px 0 70px; }
  .hero h1 { font-size: 1.8rem; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 1.6rem; }
  .table th, .table td { padding: 10px; font-size: 0.85rem; }
}
