/* ==========================================================================
   翻伽匠翻譯社 (Giant Translation) - Official Stylesheet
   Modern, Responsive & SEO-optimized Commercial Translation Portal
   ========================================================================== */

:root {
  /* Brand Color Palette */
  --primary: #0e3052;
  --primary-dark: #091f36;
  --primary-light: #1a4a7a;
  --accent: #e58a22;
  --accent-hover: #cb7414;
  --accent-light: #fff5eb;
  --secondary: #2b6cb0;
  --teal: #0d9488;
  
  /* Neutral Grays */
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-main: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  
  /* Shadows & Radius */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Layout Dimensions */
  --max-width: 1200px;
  --header-height: 76px;
  --transition: all 0.25s ease-in-out;
}

/* ----------------- Reset & Base Styles ----------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ----------------- Top Info Bar ----------------- */
.top-bar {
  background-color: var(--primary-dark);
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar a {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar a:hover {
  color: #ffffff;
}

/* ----------------- Header & Navigation ----------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 2px 5px rgba(14, 48, 82, 0.25);
}

.brand-logo-text {
  display: flex;
  flex-direction: column;
}

.brand-logo-text .brand-title {
  line-height: 1.2;
}

.brand-logo-text .brand-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: var(--text-main);
  font-size: 0.98rem;
  font-weight: 500;
  padding: 8px 4px;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.25s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Language Switcher Button */
.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
}

.lang-switch-btn:hover {
  background: #ffffff;
  border-color: var(--secondary);
  color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  padding: 6px;
}

/* ----------------- Buttons & UI Elements ----------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.96rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(229, 138, 34, 0.3);
}

.btn-secondary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: var(--primary-dark);
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--bg-subtle);
}

.btn-outline-white {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.btn-outline-white:hover {
  background-color: #ffffff;
  color: var(--primary);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* Badges */
.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.badge-primary {
  background-color: var(--accent-light);
  color: var(--accent-hover);
}

.badge-blue {
  background-color: #e0f2fe;
  color: #0369a1;
}

/* Section Header Styles */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px auto;
}

.section-header .section-tag {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Section Spacing */
.section {
  padding: 72px 0;
}

.section-subtle {
  background-color: var(--bg-subtle);
}

.section-dark {
  background-color: var(--primary-dark);
  color: #ffffff;
}

.section-dark h2, .section-dark h3 {
  color: #ffffff;
}

/* ----------------- Hero Banner Section ----------------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #091f36 0%, #153e6b 100%);
  color: #ffffff;
  padding: 80px 0 100px 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.7;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
}

.hero-content h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-content h1 .text-highlight {
  color: var(--accent);
}

.hero-content .hero-desc {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 36px;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.hero-feature-item svg {
  color: var(--accent);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image-wrapper {
  position: relative;
  align-self: stretch;
}

.hero-image-wrapper img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 4px solid rgba(255, 255, 255, 0.12);
}

.hero-floating-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #ffffff;
  color: var(--text-main);
  padding: 16px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-floating-card .card-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.hero-floating-card .card-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}

.hero-floating-card .card-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ----------------- Trust / Stat Bar ----------------- */
.stats-bar {
  background: #ffffff;
  padding: 30px 0;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item .stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-item .stat-num span {
  color: var(--accent);
}

.stat-item .stat-label {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ----------------- Core Value Highlights (3 Pillars) ----------------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pillar-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-hover);
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-icon {
  width: 58px;
  height: 58px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  margin-bottom: 22px;
}

.pillar-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.pillar-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

/* ----------------- Service Cards Grid ----------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--secondary);
}

.service-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card-img img {
  transform: scale(1.06);
}

.service-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.service-card-body p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.service-tags span {
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.service-card-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-card-footer a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-card-footer a:hover {
  color: var(--accent);
}

/* ----------------- Language Tags Grid ----------------- */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.lang-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
}

.lang-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.lang-flag {
  font-size: 1.8rem;
  line-height: 1;
}

.lang-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.lang-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ----------------- Contact Forms ----------------- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--text-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
}

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

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

/* ----------------- Process / Workflow Steps ----------------- */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-step {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  position: relative;
  text-align: center;
}

.step-badge {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 18px auto;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.process-step:nth-child(2) .step-badge {
  background: var(--secondary);
}
.process-step:nth-child(3) .step-badge {
  background: var(--teal);
}
.process-step:nth-child(4) .step-badge {
  background: var(--accent);
}

.process-step h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.process-step p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ----------------- Quality / Guarantee Highlights ----------------- */
.guarantee-box {
  background: linear-gradient(135deg, #fff9f0 0%, #ffffff 100%);
  border: 2px solid #fde68a;
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.guarantee-content h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 14px;
}

.guarantee-content p {
  color: #78350f;
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.guarantee-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guarantee-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: #78350f;
  font-weight: 600;
}

.guarantee-item svg {
  color: #d97706;
  flex-shrink: 0;
  margin-top: 3px;
}

.guarantee-img img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* ----------------- Testimonials / Client Trust ----------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.testimonial-stars {
  color: #f59e0b;
  margin-bottom: 14px;
  display: flex;
  gap: 3px;
}

.testimonial-text {
  font-size: 0.98rem;
  color: var(--text-main);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  border: 1px solid var(--border-color);
}

.author-info h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

.author-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ----------------- Table Styles (Pricing / Spec) ----------------- */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: #ffffff;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.94rem;
}

.pricing-table th {
  background: var(--primary);
  color: #ffffff;
  padding: 16px 20px;
  font-weight: 600;
}

.pricing-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

.pricing-table tbody tr:hover {
  background-color: var(--bg-subtle);
}

/* ----------------- FAQ Accordion ----------------- */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  background: #ffffff;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-answer {
  padding: 0 24px 18px 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ----------------- Call to Action (CTA) Banner ----------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: #ffffff;
}

.cta-banner p {
  font-size: 1.1rem;
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto 30px auto;
}

.cta-banner-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ----------------- Page Sub-Hero Banner ----------------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #153e6b 100%);
  color: #ffffff;
  padding: 36px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.1rem;
  color: #cbd5e1;
  max-width: 700px;
  margin: 0 auto;
}

/* ----------------- Contact Page Specifics ----------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}

.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.contact-info-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.info-item .info-icon {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.info-item p, .info-item a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ----------------- Footer ----------------- */
.site-footer {
  background-color: var(--primary-dark);
  color: #cbd5e1;
  padding: 64px 0 24px 0;
  border-top: 4px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 48px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--accent);
}

.footer-col p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #94a3b8;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  color: #64748b;
}

.footer-bottom a {
  color: #94a3b8;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* ----------------- Floating Contact Shortcuts ----------------- */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  color: #ffffff;
  transition: var(--transition);
  position: relative;
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-btn-faq {
  background-color: var(--accent);
}

.float-btn-line {
  background-color: #06c755;
}
.float-btn-line img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.float-btn-top {
  background-color: var(--primary);
  display: none;
}

.float-btn[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 60px;
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.float-btn:hover[data-tooltip]::before {
  opacity: 1;
}

/* ----------------- Responsive Media Queries ----------------- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-content h1 {
    font-size: 2.3rem;
  }
  .services-grid, .pillars-grid, .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lang-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }
  .top-bar-left {
    display: none;
  }
  .top-bar .container {
    justify-content: flex-end;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    display: none;
    gap: 16px;
  }
  .nav-links.show {
    display: flex;
  }
  .hero {
    padding: 50px 0;
  }
  .hero-content h1 {
    font-size: 1.95rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .services-grid, .pillars-grid, .testimonials-grid, .lang-grid {
    grid-template-columns: 1fr;
  }
  .process-timeline {
    grid-template-columns: 1fr;
  }
  .guarantee-box {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

.seo-service-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }

/* Notarization service illustrations and preparation guide */
.notary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 36px 0 80px; }
.notary-card { border: 1px solid var(--border-color); border-radius: 20px; overflow: hidden; background: white; }
.notary-card img { width: 100%; height: auto; display: block; }
.notary-card h3 { margin: 24px 24px 12px; color: var(--primary); }
.notary-card p { margin: 0 24px 28px; color: var(--text-muted); line-height: 1.8; }
.notary-preparation { padding: 36px; border-radius: 20px; background: var(--bg-subtle); border-left: 4px solid var(--accent); }
.notary-preparation h2, .notary-preparation h3 { color: var(--primary); margin-bottom: 14px; }
.notary-preparation p { color: var(--text-muted); line-height: 1.8; margin-bottom: 24px; }
.notary-source-links { display: flex; flex-wrap: wrap; gap: 16px 28px; }
.notary-source-links a { text-decoration: underline; text-underline-offset: 4px; }
.notary-service { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 40px; margin-top: 70px; padding-top: 60px; border-top: 1px solid var(--border-color); }
.notary-service img { width: 100%; height: auto; }
.notary-service h2 { color: var(--primary); margin: 12px 0; }
.notary-service p { line-height: 1.8; color: var(--text-muted); margin-bottom: 24px; }
.home-process-title { text-align: center; color: var(--primary); margin-bottom: 36px; }
#translation-process, #workflow { scroll-margin-top: 150px; }
@media (max-width: 768px) {
  .notary-grid, .notary-service { grid-template-columns: minmax(0, 1fr); }
  .notary-preparation { padding: 24px; }
}

/* Illustrated translation workflow */
.illustrated-workflow { margin: 38px 0 70px; gap: 24px; }
.illustrated-workflow::before, .illustrated-workflow .process-step::after { display: none; }
.illustrated-workflow .process-step { padding: 0; text-align: left; min-width: 0; }
.workflow-art { position: relative; margin-bottom: 24px; }
.workflow-art img { display: block; width: 100%; height: auto; border-radius: 20px; }
.workflow-number { position: absolute; left: 16px; bottom: -14px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: white; font-size: 1rem; font-weight: 700; border: 3px solid white; }
.illustrated-workflow .process-step h4 { line-height: 1.5; margin: 0 16px 12px; }
.illustrated-workflow .process-step p { font-size: .95rem; line-height: 1.8; padding: 0 16px 22px; }
.nda-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; scroll-margin-top: 110px; }
@media (max-width: 768px) {
  .illustrated-workflow { gap: 36px; }
  .workflow-art { max-width: 360px; margin-left: auto; margin-right: auto; }
  .nda-layout { grid-template-columns: minmax(0, 1fr); }
}

/* Translation FAQ: native keyboard-accessible disclosure controls. */
.translation-faq-item { border: 1px solid var(--border-color); border-radius: var(--radius-md); background: #fff; overflow: hidden; }
.translation-faq-item[open] { border-color: var(--secondary); box-shadow: var(--shadow-sm); }
.translation-faq-item summary { padding: 20px 24px; color: var(--primary); font-weight: 600; cursor: pointer; }
.translation-faq-item summary:focus-visible { outline: 3px solid var(--secondary); outline-offset: -3px; }
.translation-faq-item p { padding: 0 24px 22px; color: var(--text-muted); line-height: 1.8; }
.faq-contact { text-align: center; margin-top: 40px; }
.faq-contact p { margin-bottom: 18px; }

/* Give English navigation labels room without splitting words across lines. */
.lang-switch-btn { white-space: nowrap; flex-shrink: 0; }
.site-header .brand-logo { flex-shrink: 0; }
.site-header .brand-title, .site-header .brand-sub, .nav-links a { white-space: nowrap; }
html[lang="en"] .main-nav { gap: 14px; }
html[lang="en"] .nav-links { gap: 10px; }
html[lang="en"] .nav-links a { font-size: .9rem; white-space: nowrap; }
html[lang="en"] .nav-actions { gap: 10px; }
html[lang="en"] .nav-actions > .btn { padding-left: 16px; padding-right: 16px; }
@media (min-width: 769px) and (max-width: 1320px) {
  .site-header .container { height: auto; min-height: var(--header-height); flex-wrap: wrap; justify-content: center; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
}
@media (max-width: 768px) {
  main [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: minmax(0, 1fr) !important; }
}

.main-nav { flex-wrap: wrap; justify-content: center; }
.hero-news-panel { position: static; margin-top: 24px; padding: 22px 24px; border: 1px solid #ffffff26; border-radius: 16px; background: rgba(9, 34, 57, .55); color: white; display: flex; flex-direction: column; }
.hero-news-heading h2 { font-size: 1.6rem; color: white; margin: 4px 0 12px; }
.hero-image-wrapper > img { height: 500px; }
.hero-news-list { display: grid; gap: 0; }
.news-marquee-viewport { height: 192px; overflow: hidden; }
.news-marquee-track { animation: news-scroll-up 50s linear infinite; }
.news-marquee-group .hero-news-item { height: 96px; box-sizing: border-box; }
@keyframes news-scroll-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .news-marquee-track { animation: none; }
  .news-marquee-viewport { overflow-y: auto; }
  .news-marquee-copy { display: none; }
}
@media (min-width: 1025px) {
  .hero-image-wrapper > img { position: absolute; inset: 0; height: 100%; }
}
.hero-news-item { display: block; min-height: 0; overflow: hidden; padding: 11px 0; border-top: 1px solid #ffffff26; color: white; }
.hero-news-item time { display: block; color: #a9c3da; font-size: .74rem; margin-bottom: 4px; }
.hero-news-item > span { font-size: .96rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-news-item:hover, .hero-news-all:hover { color: #ffc47b; }
.hero-news-all { flex-shrink: 0; color: #ffc47b; margin-top: 12px; font-weight: 600; font-size: .9rem; }
.news-intro { max-width: 800px; margin: 0 auto 36px; text-align: center; color: var(--text-muted); line-height: 1.8; }
.news-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.news-card { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--border-color); border-radius: 16px; background: white; box-shadow: var(--shadow-sm); }
.news-card-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .76rem; color: var(--text-muted); }
.news-card-meta span { color: #99600e; }
.news-card h2 { font-size: 1.15rem; line-height: 1.6; margin: 16px 0 12px; }
.news-card h2 a { color: var(--primary); }
.news-card p { color: var(--text-muted); line-height: 1.8; margin-bottom: 20px; }
.news-read { margin-top: auto; color: var(--secondary); font-weight: 600; }
.article-hero h1 { font-size: clamp(1.6rem,3vw,2.3rem); max-width: 1000px; margin: 12px auto; }
.article-eyebrow, .article-dates { font-size: .88rem !important; }
.article-layout { display: grid; grid-template-columns: minmax(0,2.2fr) minmax(220px,1fr); gap: 48px; }
.article-body { line-height: 1.95; min-width: 0; overflow-wrap: anywhere; }
.article-lead { font-size: 1.1rem; color: var(--text-muted); padding-bottom: 24px; border-bottom: 1px solid var(--border-color); }
.article-content h2 { font-size: 1.45rem; color: var(--primary); margin: 32px 0 14px; }
.article-content p { margin-bottom: 16px; }
.article-content a { text-decoration: underline; }
.article-source-note { padding: 18px; background: var(--bg-subtle); border-left: 3px solid var(--accent); margin: 28px 0; }
.article-aside { align-self: start; padding: 28px; border-radius: 16px; background: var(--bg-subtle); }
.article-aside h2 { font-size: 1.25rem; color: var(--primary); }
.article-aside p { margin: 14px 0; color: var(--text-muted); }
.article-aside a { display: block; margin-top: 18px; }
@media (max-width: 1024px) { .news-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 768px) { .news-grid, .article-layout { grid-template-columns: minmax(0,1fr); } .hero-news-panel { inset: 12px; padding: 20px; } .hero-image-wrapper img { height: 470px; } .main-nav { flex-wrap: nowrap; } }

/* Official LINE entry and QR dialog */
.top-bar-right { flex-wrap: wrap; }
.top-bar a.official-line-trigger { gap: 12px; padding: 6px 14px 6px 8px; background: transparent; border-radius: 8px; color: #cbd5e1; }
.top-bar a.official-line-trigger:hover { color: #fff; }
.official-line-trigger img { width: 40px; height: 40px; flex-shrink: 0; }
.official-line-trigger > span { display: flex; gap: 8px; align-items: center; }
.official-line-trigger strong { font-size: 0.95rem; }
.official-line-trigger:focus-visible, .line-dialog-close:focus-visible { outline: 3px solid #06c755; outline-offset: 3px; }
.official-line-dialog { margin: auto; width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; border: 0; border-radius: 20px; padding: 32px; text-align: center; color: var(--text-main); box-shadow: 0 24px 80px #0005; }
.official-line-dialog::backdrop { background: rgba(10, 25, 43, .65); }
.line-dialog-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f1f5f9; color: var(--primary); font-size: 28px; cursor: pointer; }
.line-dialog-brand { display: block; margin: 0 auto 18px; }
.official-line-dialog h2 { font-size: 1.4rem; margin-bottom: 10px; }
.official-line-dialog p { color: var(--text-muted); }
.line-qr { display: block; width: min(100%, 280px); height: auto; margin: 20px auto 10px; }
.line-account { display: block; font-size: 1.25rem; margin-bottom: 20px; }
.line-open { width: 100%; background: #067b38; color: #fff; }
.line-open:hover { background: #05652e; color: #fff; }
body.line-dialog-open { overflow: hidden; }

/* Office location card */
.office-map-card { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.4fr); border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-md); }
.office-map-info { padding: 40px; }
.office-map-info h2 { color: var(--primary); font-size: 1.8rem; line-height: 1.4; margin-bottom: 16px; }
.office-map-info p { color: var(--text-muted); line-height: 1.8; }
.office-map-address { margin: 24px 0 18px; padding-left: 16px; border-left: 3px solid var(--accent); }
.office-map-address strong { display: block; color: var(--primary); margin-bottom: 6px; }
.office-map-info .btn { margin-top: 24px; }
.office-map-frame { width: 100%; height: 100%; min-height: 480px; display: block; }
@media (max-width: 768px) {
  .top-bar-right { justify-content: center; gap: 12px; width: 100%; }
  .site-header .container { gap: 12px; }
  .site-header .brand-logo { gap: 8px; flex-shrink: 0; }
  .site-header .brand-title { font-size: 1rem; white-space: nowrap; }
  .site-header .brand-sub { font-size: 0.6rem; letter-spacing: 0; white-space: nowrap; }
  .site-header .brand-logo-icon { width: 32px; height: 36px; flex-shrink: 0; }
  .nav-actions { gap: 8px; }
  .nav-actions > .btn { display: none; }
  .lang-switch-btn { padding: 6px; font-size: 0.75rem; }
  .lang-switch-btn svg { display: none; }
  .nav-links { position: absolute; top: 100%; }
  .official-line-trigger > span { flex-direction: column; gap: 0; align-items: flex-start; }
  .office-map-card { grid-template-columns: 1fr; }
  .office-map-info { padding: 28px 24px; }
  .office-map-frame { height: 340px; min-height: 340px; }
  .official-line-dialog { padding: 28px 22px; }
}
