/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:       #1C3683;
  --teal-dark:  #142660;
  --teal-light: #e8edf8;
  --navy:       #0f1f4d;
  --accent:     #3a5bbf;
  --text:       #2d3748;
  --muted:      #718096;
  --bg-light:   #f0f4ff;
  --white:      #ffffff;
  --radius:     12px;
  --shadow:     0 4px 24px rgba(28,54,131,.12);
  --transition: .3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid var(--teal);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); transform: translateY(-2px); }
.btn-primary.full-width { width: 100%; text-align: center; }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--teal);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid var(--teal);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-outline:hover { background: var(--teal); color: var(--white); transform: translateY(-2px); }

/* ===== SECTION LABELS & HEADERS ===== */
.section-label {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}
.section-header h2 { font-size: 2rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.section-header p  { color: var(--muted); }

/* ===== HEADER ===== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(28,54,131,.1);
  transition: box-shadow var(--transition);
}
#header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

#nav { display: flex; gap: 32px; }
#nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  transition: color var(--transition);
}
#nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--teal);
  transition: width var(--transition);
}
#nav a:hover, #nav a.active { color: var(--teal); }
#nav a:hover::after, #nav a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-btn {
  background: var(--teal-light);
  color: var(--teal);
  border: none;
  padding: 7px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  transition: all var(--transition);
}
.lang-btn:hover { background: var(--teal); color: var(--white); }

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--navy);
  cursor: pointer;
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--teal-light);
  z-index: 999;
  padding: 16px 24px;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 0;
  font-weight: 500;
  border-bottom: 1px solid var(--teal-light);
  color: var(--text);
}
.mobile-nav a:last-child { border-bottom: none; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: var(--white);
  display: flex;
  align-items: center;
  padding-top: 70px;
  position: relative;
  overflow: hidden;
}

.hero-spine {
  position: absolute;
  left: -20px; top: 50%;
  transform: translateY(-50%);
  width: 60px; height: 80%;
  background: linear-gradient(180deg, var(--teal) 0%, var(--accent) 100%);

  border-radius: 0 30px 30px 0;
  opacity: .15;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 24px;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-content h1 .accent { color: var(--teal); }

.hero-content p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 32px;
  max-width: 460px;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.stat span   { font-size: .75rem; color: var(--muted); }
.stat-divider { width: 1px; height: 36px; background: #e2e8f0; }

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-circle-outer {
  position: absolute;
  width: 420px; height: 420px;
  border: 2px dashed rgba(28,54,131,.3);
  border-radius: 50%;
}

.hero-circle-inner {
  width: 360px; height: 360px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--white);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}
.hero-circle-inner img { width: 100%; height: 100%; object-fit: cover; }

.hero-badge-float {
  position: absolute;
  bottom: 20px; left: -10px;
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius);
  padding: 14px 20px;
  text-align: center;
  z-index: 2;
  box-shadow: var(--shadow);
}
.hero-badge-float span { display: block; font-size: .75rem; opacity: .85; }
.hero-badge-float strong { display: block; font-size: 1rem; font-weight: 700; }

.dots {
  position: absolute;
  width: 80px; height: 80px;
  background-image: radial-gradient(circle, var(--teal) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: .3;
}
.dots-tr { top: 0; right: -10px; }
.dots-bl { bottom: 0; left: 20px; }

.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
}
.hero-wave svg { width: 100%; height: 80px; }

/* ===== ABOUT ===== */
.about {
  background: var(--bg-light);
  padding: 100px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: visible;
}
.about-img-wrap img {
  border-radius: 20px;
  width: 100%;
  height: 420px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.about-exp-badge {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.about-exp-badge strong { display: block; font-size: 2rem; font-weight: 800; }
.about-exp-badge span   { font-size: .8rem; opacity: .9; }

.about-content h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}
.about-content p { color: var(--muted); margin-bottom: 16px; }

.about-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
.about-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 500;
}
.about-features li i { color: var(--teal); font-size: 1rem; }

/* ===== SERVICES ===== */
.services { padding: 100px 0; background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid #e8f4f4;
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
  cursor: default;
}
.service-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-icon {
  width: 56px; height: 56px;
  background: var(--teal-light);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--teal);
  margin-bottom: 20px;
  transition: all var(--transition);
}
.service-card:hover .service-icon { background: var(--teal); color: var(--white); }
.spine-svg { width: 1.4rem; height: 1.4rem; }

.service-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.service-card p  { font-size: .88rem; color: var(--muted); line-height: 1.6; }

/* ===== WHY US ===== */
.why-us { background: var(--navy); padding: 100px 0; }
.why-us .section-label { background: rgba(255,255,255,.1); color: var(--accent); }
.why-us .section-header h2 { color: var(--white); }
.why-us .section-header p  { color: rgba(255,255,255,.6); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}
.why-card:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }
.why-card i  { font-size: 2rem; color: var(--accent); margin-bottom: 16px; }
.why-card h4 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.why-card p  { font-size: .85rem; color: rgba(255,255,255,.6); line-height: 1.6; }

/* ===== CONTACT ===== */
.contact { background: var(--bg-light); padding: 100px 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 28px; }

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.info-item i {
  width: 44px; height: 44px;
  background: var(--teal);
  color: var(--white);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.info-item h4 { font-size: .85rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.info-item p  { font-size: .88rem; color: var(--muted); }
.info-item a  { color: var(--teal); }
.info-item a:hover { text-decoration: underline; }

/* Contact Form */
.contact-form {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--navy); }
.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: .9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--teal); }
.form-group textarea { resize: vertical; }

/* ===== CAPTCHA ===== */
.captcha-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-light);
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
}
.captcha-question {
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
  flex: 1;
  white-space: nowrap;
}
.captcha-refresh {
  background: none;
  border: none;
  color: var(--teal);
  cursor: pointer;
  font-size: .95rem;
  padding: 2px 4px;
  transition: transform var(--transition);
  flex-shrink: 0;
}
.captcha-refresh:hover { transform: rotate(180deg); }
.captcha-group input {
  width: 90px;
  flex-shrink: 0;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: .9rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
.captcha-group input:focus { border-color: var(--teal); }
.captcha-error {
  font-size: .8rem;
  color: #e53e3e;
  margin-top: 4px;
  display: block;
}


.footer {
  background: var(--navy);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
}
.footer-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .85;
}
.footer-copy { color: rgba(255,255,255,.4); font-size: .8rem; }

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

@media (max-width: 768px) {
  #nav, .header-actions .btn-primary { display: none; }
  .hamburger { display: block; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 24px 80px;
    gap: 48px;
  }
  .hero-content p { margin: 0 auto 32px; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-circle-outer { width: 300px; height: 300px; }
  .hero-circle-inner { width: 260px; height: 260px; }

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .about-img-wrap img { height: 280px; }
  .about-exp-badge { right: 10px; bottom: -16px; }

  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }

  .contact-form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .stat-divider { width: 40px; height: 1px; }
}
