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

:root {
  color-scheme: light;
  --ink: #0f172a;          /* Slate 900 */
  --muted: #475569;        /* Slate 600 */
  --light-muted: #64748b;  /* Slate 500 */
  --line: #e2e8f0;         /* Slate 200 */
  --paper: #f8fafc;        /* Slate 50 */
  --white: #ffffff;
  --accent: #0f766e;       /* Teal 700 */
  --accent-light: #f0fdfa; /* Teal 50 */
  --accent-hover: #0d9488; /* Teal 600 */
  --gold: #b45309;         /* Amber 700 */
  --gold-light: #fef3c7;   /* Amber 100 */
  --red-light: #fee2e2;    /* Red 100 */
  --red-text: #b91c1c;     /* Red 700 */
  --max: 1200px;
  --gutter: 24px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08);

  font-family: 'Plus Jakarta Sans', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(var(--gutter), calc((100vw - var(--max)) / 2));
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.nav {
  color: var(--muted);
  display: flex;
  gap: 32px;
  font-size: 15px;
  font-weight: 600;
}

.nav a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

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

.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Common Section Layout */
.section {
  padding: 96px var(--gutter);
  max-width: var(--max);
  margin-inline: auto;
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.eyebrow {
  color: var(--gold);
  background: var(--gold-light);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin: 0 auto 16px;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: var(--ink);
}

h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
}

/* Buttons */
.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 15px;
}

.button.primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.2);
}

.button.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.3);
}

.button.secondary {
  background: var(--white);
  border-color: var(--line);
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

.button.secondary:hover {
  border-color: var(--light-muted);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px var(--gutter) 120px;
  max-width: var(--max);
  margin-inline: auto;
}

.hero-copy {
  max-width: 620px;
}

.hero-copy h1 {
  background: linear-gradient(135deg, var(--accent) 30%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy .lead {
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.7;
  margin-bottom: 0;
}

.hero-copy .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.hero-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.hero-panel div {
  border-bottom: 1px solid var(--line);
  padding: 28px;
  position: relative;
  transition: background-color 0.2s ease;
}

.hero-panel div:hover {
  background-color: var(--paper);
}

.hero-panel div:last-child {
  border-bottom: 0;
}

.hero-panel span {
  color: var(--gold);
  background: var(--gold-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-bottom: 12px;
}

.hero-panel strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}

.hero-panel p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 0;
}

/* Services Section */
.service-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(15, 118, 110, 0.3);
  box-shadow: var(--shadow-xl);
}

.service-icon {
  color: var(--accent);
  background: var(--accent-light);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  background: var(--accent);
  color: var(--white);
}

.service-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 0;
  margin-top: auto;
}

.band {
  background: var(--accent-light);
  border-radius: var(--radius-lg);
  margin-inline: auto;
  width: calc(100% - var(--gutter) * 2);
  padding: 80px 48px;
  max-width: calc(var(--max) - var(--gutter) * 2);
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.2s ease;
}

.steps li:hover {
  transform: translateY(-2px);
}

.steps li::before {
  color: var(--accent);
  content: "Step " counter(step);
  counter-increment: step;
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(15, 118, 110, 0.08);
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.steps strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.steps span {
  color: var(--muted);
  font-size: 14px;
  display: block;
}

/* Contact & Form Section */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}

.contact .section-heading {
  margin: 0;
  text-align: left;
}

.contact .section-heading p {
  color: var(--muted);
  font-size: 15px;
  margin-top: 16px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.contact-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-list li strong {
  font-size: 15px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  display: inline-block;
  width: max-content;
}

/* Custom list badges colors */
.contact-list li:nth-child(1) strong {
  background: var(--accent-light);
  color: var(--accent);
}

.contact-list li:nth-child(2) strong {
  background: var(--red-light);
  color: var(--red-text);
}

.contact-list li:nth-child(3) strong {
  background: var(--gold-light);
  color: var(--gold);
}

.contact-list span {
  color: var(--muted);
  font-size: 14px;
}

.request-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 40px;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.request-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  grid-column: span 2;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.request-form label:nth-of-type(1),
.request-form label:nth-of-type(2) {
  grid-column: span 1;
}

.request-form .field-row {
  grid-column: span 2;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
}

.request-form .field-row label {
  grid-column: span 1;
}

.request-form .submit {
  grid-column: span 2;
  margin-top: 12px;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  min-height: 46px;
  padding: 10px 16px;
  width: 100%;
  background: var(--white);
  transition: all 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: #a0aec0;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
  outline: none;
}

textarea {
  line-height: 1.6;
  resize: vertical;
}

.form-note {
  grid-column: span 2;
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
}

/* Output Area (Form Result) */
.output {
  grid-column: span 2;
  background: #0f172a;     /* Deep dark slate */
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 32px;
  margin-top: 32px;
  color: #f8fafc;
  border: 1px solid #1e293b;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.output h3 {
  color: var(--white);
  margin-bottom: 4px;
}

.output p {
  color: #94a3b8;
  font-size: 13px;
  margin-bottom: 20px;
}

.output textarea {
  background: #1e293b;
  color: #f1f5f9;
  border: 1px solid #334155;
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
  font-size: 14px;
  line-height: 1.6;
  padding: 16px;
  border-radius: var(--radius-sm);
  width: 100%;
  resize: none;
  overflow: hidden;
}

.output textarea:focus {
  border-color: var(--accent-hover);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.3);
}

.output .button {
  width: 100%;
  margin-top: 16px;
  background: #334155;
  color: #f8fafc;
  border: none;
}

.output .button:hover {
  background: #475569;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px var(--gutter);
  background: var(--white);
}

.footer p {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* Responsive Overrides */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-bottom: 80px;
  }
  
  .hero-copy {
    max-width: 100%;
    text-align: center;
  }
  
  .hero-copy .lead {
    margin-inline: auto;
  }
  
  .hero-copy .actions {
    justify-content: center;
  }
  
  .contact {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .contact .section-heading {
    text-align: center;
  }
  
  .contact-list {
    max-width: 600px;
    margin-inline: auto;
    width: 100%;
  }
  
  .request-form {
    max-width: 680px;
    margin-inline: auto;
    width: 100%;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .band {
    padding: 60px 32px;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
  
  .site-header {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    padding-block: 16px;
  }
  
  .nav {
    gap: 20px;
  }

  .hero {
    padding-top: 40px;
  }
  
  .service-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  
  .band {
    padding: 40px 16px;
    margin-inline: 0;
    border-radius: 0;
  }
  
  .request-form {
    padding: 24px 16px;
    grid-template-columns: 1fr;
  }
  
  .request-form label:nth-of-type(1),
  .request-form label:nth-of-type(2),
  .request-form .field-row {
    grid-column: span 2;
  }
  
  .request-form .field-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contact-list {
    padding-inline: 0;
  }
}

/* Section-by-section scrolling */
html {
  scroll-padding-top: 76px;
  scroll-snap-type: y proximity;
  scrollbar-width: none;
}

body {
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

.hero,
.section,
.footer {
  scroll-snap-align: start;
}

/* Combined services + process block */
.workflow-block {
  align-content: center;
  min-height: calc(100svh - 76px);
  padding-block: clamp(40px, 6vh, 64px);
}

.workflow-content {
  display: grid;
  gap: clamp(28px, 4vh, 40px);
}

.workflow-section .section-heading {
  margin-bottom: 24px;
}

.workflow-section .section-heading h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.workflow-section .service-grid,
.workflow-section .steps {
  gap: 16px;
}

.workflow-section .service-card,
.workflow-section .steps li {
  padding: 20px;
}

.workflow-section .service-icon {
  height: 40px;
  margin-bottom: 16px;
  width: 40px;
}

.process-panel {
  background: var(--accent-light);
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
}

.process-panel .steps li {
  background: rgba(255, 255, 255, 0.82);
}

@media (max-width: 640px) {
  html {
    scroll-snap-type: none;
  }
}
