@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700&display=swap');

:root {
  --primary:      #2B7DA0;
  --primary-dark: #1A5C78;
  --accent:       #E07940;
  --accent-hover: #C5632C;
  --bg:           #FDFBF7;
  --bg-alt:       #FDF6EE;
  --dark:         #1C3348;
  --text:         #2C2C2C;
  --text-light:   #6B7E8C;
  --border:       #D3E4EE;
  --shadow:       rgba(27, 93, 120, 0.10);
  --radius:       12px;
  --tr:           all 0.3s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans TC', '微軟正黑體', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}

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

/* ── Header ── */
header {
  position: sticky; top: 0; z-index: 200;
  background: #fff;
  box-shadow: 0 2px 12px var(--shadow);
}
.header-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: .6rem; }
.logo img { height: 44px; }

nav ul { list-style: none; display: flex; gap: 1.8rem; }
nav a {
  color: var(--text); font-weight: 500; font-size: .95rem;
  padding: .3rem 0; border-bottom: 2px solid transparent;
  transition: var(--tr);
}
nav a:hover, nav a.active { color: var(--primary); border-bottom-color: var(--accent); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: .3rem;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: var(--tr);
}

/* ── Buttons ── */
.btn {
  display: inline-block; padding: .7rem 1.8rem;
  border-radius: 50px; font-size: .95rem; font-weight: 600;
  cursor: pointer; border: none; font-family: inherit;
  transition: var(--tr);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.15); }
.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  color: #fff; padding: 5rem 1.5rem; text-align: center;
}
.hero-inner { max-width: 780px; margin: 0 auto; }
.hero-tagline { font-size: 1.9rem; font-weight: 700; letter-spacing: .12em; margin-bottom: .5rem; }
.hero-services { font-size: .9rem; opacity: .7; letter-spacing: .05em; margin-bottom: .5rem; }
.hero p { margin: .8rem 0 2rem; opacity: .88; font-size: 1rem; }
.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Page Hero (subpages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  color: #fff; padding: 3.5rem 1.5rem; text-align: center;
}
.page-hero h1 { font-size: 1.9rem; font-weight: 700; margin-bottom: .5rem; }
.page-hero p { opacity: .8; font-size: 1rem; }

/* ── Layout ── */
.section { padding: 4.5rem 1.5rem; }
.section-alt { background: var(--bg-alt); }
.container { max-width: 1100px; margin: 0 auto; }

.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: 1.9rem; color: var(--primary-dark); margin-bottom: .4rem; }
.section-title .sub { color: var(--text-light); font-size: .95rem; }
.section-title .line {
  width: 48px; height: 3px; background: var(--accent);
  margin: .8rem auto 0; border-radius: 2px;
}

/* ── Cards ── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.5rem; }
.card {
  background: #fff; border-radius: var(--radius);
  padding: 2rem; box-shadow: 0 4px 18px var(--shadow);
  border-top: 4px solid var(--accent);
  transition: var(--tr);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px var(--shadow); }
.card .icon {
  width: 56px; height: 56px; border-radius: 10px;
  background: #fff8f0; border: 1.5px solid rgba(224,121,64,.2);
  font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
}
.card h3 { font-size: 1.1rem; color: var(--primary-dark); margin-bottom: .5rem; }
.card p { color: var(--text-light); font-size: .92rem; }

/* ── About Grid (home) ── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
}
.about-text h2 { font-size: 1.8rem; color: var(--primary-dark); margin-bottom: 1rem; }
.about-text p { color: var(--text-light); margin-bottom: 1rem; font-size: .95rem; }
.badges { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.badge {
  background: #fff; border: 2px solid var(--border);
  border-radius: 50px; padding: .45rem 1.1rem;
  font-size: .85rem; font-weight: 600; color: var(--primary);
  display: flex; align-items: center; gap: .4rem;
}
.logo-img-wrap {
  text-align: center;
}
.logo-img-wrap img {
  max-width: 280px; width: 100%; margin: 0 auto;
  border-radius: 18px; box-shadow: 0 10px 36px var(--shadow);
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; padding: 3.5rem 1.5rem; text-align: center;
}
.cta-banner h2 { font-size: 1.7rem; margin-bottom: .7rem; }
.cta-banner p { opacity: .85; margin-bottom: 1.8rem; }

/* ── Services page ── */
.service-block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
  padding-bottom: 3.5rem; margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
}
.service-block:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.service-block.flip { direction: rtl; }
.service-block.flip > * { direction: ltr; }
.svc-visual {
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 3rem 2rem; text-align: center;
  font-size: 5rem; line-height: 1;
}
.svc-content h3 { font-size: 1.45rem; color: var(--primary-dark); margin-bottom: .8rem; }
.svc-content p { color: var(--text-light); font-size: .95rem; margin-bottom: 1rem; }
.feature-list { list-style: none; }
.feature-list li {
  padding: .35rem 0; color: var(--text-light); font-size: .92rem;
  display: flex; align-items: center; gap: .5rem;
}
.feature-list li::before { content: '✓'; color: var(--accent); font-weight: 700; }

/* ── About page ── */
.intro-block { max-width: 780px; margin: 0 auto; text-align: center; }
.intro-block p { color: var(--text-light); font-size: 1rem; margin-bottom: 1rem; }
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; }
.cert-card {
  background: #fff; border-radius: var(--radius);
  padding: 1.8rem 1.5rem; text-align: center;
  box-shadow: 0 4px 18px var(--shadow);
  border-bottom: 4px solid var(--accent);
}
.cert-card .ci { font-size: 2.6rem; margin-bottom: .7rem; }
.cert-card h4 { font-size: .95rem; color: var(--primary-dark); font-weight: 700; }
.cert-card p { font-size: .8rem; color: var(--text-light); margin-top: .3rem; }

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.value-card {
  padding: 1.5rem; border-radius: var(--radius);
  background: #fff; box-shadow: 0 4px 18px var(--shadow);
  border-left: 4px solid var(--primary);
}
.value-card .vi { font-size: 1.8rem; margin-bottom: .6rem; }
.value-card h4 { color: var(--primary-dark); font-size: 1rem; margin-bottom: .4rem; }
.value-card p { color: var(--text-light); font-size: .88rem; }

/* ── Contact page ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start; }
.cinfo h3 { color: var(--primary-dark); font-size: 1.1rem; margin-bottom: 1.4rem; }
.cinfo-item {
  display: flex; gap: .8rem; align-items: flex-start;
  margin-bottom: 1.2rem; padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}
.cinfo-item:last-child { border-bottom: none; }
.ci-icon {
  width: 42px; height: 42px; border-radius: 8px;
  background: var(--bg-alt); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0; color: var(--primary);
}
.cinfo-item strong { display: block; font-size: .88rem; color: var(--text); margin-bottom: .1rem; }
.cinfo-item span { color: var(--text-light); font-size: .88rem; }

.form-card {
  background: #fff; border-radius: var(--radius);
  padding: 2rem; box-shadow: 0 4px 20px var(--shadow);
}
.form-card h3 { color: var(--primary-dark); font-size: 1.1rem; margin-bottom: 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .86rem; font-weight: 600; color: var(--text); margin-bottom: .35rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .7rem 1rem;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: .92rem; font-family: inherit; color: var(--text);
  background: var(--bg); transition: var(--tr);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43,125,160,.1);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.btn-submit {
  width: 100%; padding: .85rem;
  background: var(--primary); color: #fff;
  border: none; border-radius: 8px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: var(--tr);
}
.btn-submit:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ── Footer ── */
footer {
  background: var(--dark); color: rgba(255,255,255,.7);
  padding: 2.5rem 1.5rem;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-body {
  display: flex; align-items: center; gap: 2rem;
  justify-content: center; flex-wrap: wrap;
}
.footer-gt-logo { height: 52px; width: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.footer-contact { font-size: .88rem; line-height: 1.9; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: .4rem; }
.footer-links a { color: rgba(255,255,255,.65); font-size: .88rem; transition: var(--tr); }
.footer-links a:hover { color: #fff; }
.footer-nav {
  display: flex; justify-content: center; gap: 1.5rem;
  flex-wrap: wrap; margin-top: 1.2rem;
}
.footer-nav a { color: rgba(255,255,255,.5); font-size: .82rem; transition: var(--tr); }
.footer-nav a:hover { color: #fff; }
.footer-copy {
  margin-top: 1.2rem; padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .78rem; opacity: .45; text-align: center;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .service-block, .service-block.flip { grid-template-columns: 1fr; direction: ltr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid .logo-img-wrap { display: none; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; box-shadow: 0 6px 16px var(--shadow);
  }
  nav.open { display: block; }
  nav ul { flex-direction: column; padding: .8rem 1.5rem; gap: 0; }
  nav ul li { border-bottom: 1px solid var(--border); }
  nav ul li:last-child { border-bottom: none; }
  nav a { display: block; padding: .75rem 0; }
  .hero h1 { font-size: 1.8rem; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .section { padding: 3rem 1.2rem; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
}
