:root {
  --ink: #172027;
  --muted: #5f6d76;
  --line: #dce5e7;
  --paper: #fbfcfb;
  --soft: #eef5f3;
  --teal: #147c78;
  --teal-dark: #0d5c59;
  --coral: #c95f4d;
  --gold: #b68b2d;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(23, 32, 39, 0.14);
  --shadow-soft: 0 10px 28px rgba(23, 32, 39, 0.08);
  --shadow-lift: 0 22px 46px rgba(23, 32, 39, 0.14);
  --surface-glass: rgba(255, 255, 255, 0.82);
  --site-font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  --font-scale: 100%;
  --logo-size: 42px;
  --brand-text-size: 16px;
  --brand-subtitle-size: 12px;
  --nav-text-size: 16px;
  --body-text-size: 16px;
  --button-text-size: 16px;
  --eyebrow-text-size: 14px;
  --hero-title-size: 76px;
  --hero-copy-size: 18px;
  --section-title-size: 42px;
  --card-title-size: 19px;
  --motion-enabled: 1;
  --motion-duration: 18s;
  --motion-opacity: 0.62;
  --page-motion-duration: 22s;
  --section-motion-duration: 28s;
  --contact-motion-duration: 20s;
}

* {
  box-sizing: border-box;
}

* {
  text-overflow: clip;
}

body :where(a, button, label, span, small, strong, p, h1, h2, h3, h4, h5, h6, li, input, textarea, select, option) {
  text-overflow: clip !important;
  overflow-wrap: anywhere;
}

input,
textarea,
select {
  text-overflow: clip !important;
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-scale);
}

body {
  position: relative;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(20, 124, 120, 0.08), transparent 30%),
    linear-gradient(315deg, rgba(201, 95, 77, 0.06), transparent 26%),
    var(--paper);
  font-family: var(--site-font-family);
  font-size: var(--body-text-size);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 16% 12%, rgba(20, 124, 120, 0.09), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(182, 139, 45, 0.08), transparent 24%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 6vw;
  background: rgba(251, 252, 251, 0.9);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(23, 32, 39, 0.05);
  backdrop-filter: blur(14px);
}

.brand,
.site-nav,
.hero-actions,
.contact-list li,
.btn {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-size: var(--brand-text-size);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-copy {
  display: grid;
  gap: 0;
  width: max-content;
  max-width: min(58vw, 720px);
  line-height: 1.2;
}

.brand-copy small {
  color: var(--muted);
  font-size: var(--brand-subtitle-size);
  font-weight: 600;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--white);
  background: var(--teal);
  border-radius: 8px;
}

.brand-logo {
  width: var(--logo-size);
  height: var(--logo-size);
  flex: 0 0 auto;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(20, 124, 120, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand:hover .brand-logo {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(20, 124, 120, 0.24);
}

.site-nav {
  gap: 6px;
}

.site-nav a {
  padding: 10px 14px;
  color: var(--muted);
  border-radius: 8px;
  font-size: var(--nav-text-size);
  font-weight: 700;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.site-nav a:hover {
  color: var(--teal-dark);
  background: var(--soft);
  transform: translateY(-1px);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.language-switch button {
  min-width: 48px;
  height: 34px;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: var(--nav-text-size);
  font-weight: 800;
  cursor: pointer;
}

.language-switch button.is-active {
  color: var(--white);
  background: var(--teal);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(251, 252, 251, 0.96) 0%, rgba(251, 252, 251, 0.84) 38%, rgba(251, 252, 251, 0.24) 70%),
    linear-gradient(0deg, rgba(23, 32, 39, 0.18), rgba(23, 32, 39, 0));
}

.hero::before,
.page-hero::before,
.contact::before {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero::before {
  inset: -16%;
  z-index: -2;
  opacity: calc(var(--motion-opacity) * var(--motion-enabled));
  background:
    linear-gradient(115deg, transparent 4%, rgba(20, 124, 120, 0.3) 18%, transparent 32%),
    linear-gradient(72deg, transparent 42%, rgba(182, 139, 45, 0.28) 50%, transparent 61%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.24) 0 1px, transparent 1px 110px),
    repeating-linear-gradient(0deg, rgba(20, 124, 120, 0.18) 0 1px, transparent 1px 110px);
  background-size: 180% 180%, 140% 140%, 110px 110px, 110px 110px;
  mix-blend-mode: multiply;
  animation: hero-flow var(--motion-duration) ease-in-out infinite alternate;
}

body[data-hero-overlay="light"] .hero::after {
  background:
    linear-gradient(90deg, rgba(251, 252, 251, 0.9) 0%, rgba(251, 252, 251, 0.72) 38%, rgba(251, 252, 251, 0.14) 70%),
    linear-gradient(0deg, rgba(23, 32, 39, 0.1), rgba(23, 32, 39, 0));
}

body[data-hero-overlay="strong"] .hero::after {
  background:
    linear-gradient(90deg, rgba(251, 252, 251, 0.98) 0%, rgba(251, 252, 251, 0.9) 42%, rgba(251, 252, 251, 0.38) 74%),
    linear-gradient(0deg, rgba(23, 32, 39, 0.25), rgba(23, 32, 39, 0));
}

.hero-content {
  width: min(680px, 88vw);
  max-width: 100%;
  margin-left: 6vw;
  padding: 70px 0 96px;
  filter: drop-shadow(0 16px 34px rgba(23, 32, 39, 0.08));
}

.eyebrow {
  display: inline-block;
  width: auto;
  max-width: 100%;
  margin: 0 0 14px;
  color: var(--coral);
  font-size: var(--eyebrow-text-size);
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: normal;
  overflow-wrap: normal;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 22px;
  font-size: clamp(32px, 6vw, var(--hero-title-size));
  line-height: 1.04;
  letter-spacing: 0;
}

[data-field="heroTitle"] {
  white-space: pre-line;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(20px, 3.5vw, var(--section-title-size));
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: var(--card-title-size);
}

.hero-copy {
  max-width: 620px;
  color: #334149;
  font-size: var(--hero-copy-size);
  text-wrap: pretty;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  justify-content: center;
  gap: 9px;
  max-width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: var(--button-text-size);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(23, 32, 39, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn svg,
.service-card svg,
.contact-list svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #168c87 0%, var(--teal-dark) 100%);
  box-shadow: 0 14px 28px rgba(20, 124, 120, 0.24);
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: rgba(20, 124, 120, 0.32);
  box-shadow: 0 14px 28px rgba(23, 32, 39, 0.12);
  transform: translateY(-2px);
}

.section {
  padding: 88px 6vw;
}

.about {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(251, 252, 251, 0.92)),
    radial-gradient(circle at 90% 20%, rgba(20, 124, 120, 0.08), transparent 28%);
}

.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 88px 6vw 56px;
  background:
    linear-gradient(180deg, rgba(248, 251, 250, 0.94) 0%, rgba(238, 245, 243, 0.92) 100%),
    linear-gradient(115deg, rgba(20, 124, 120, 0.16), transparent 42%),
    linear-gradient(295deg, rgba(201, 95, 77, 0.12), transparent 34%);
}

.page-hero::before {
  inset: -40%;
  z-index: -1;
  opacity: calc(0.7 * var(--motion-enabled));
  background:
    repeating-linear-gradient(118deg, rgba(20, 124, 120, 0.13) 0 1px, transparent 1px 78px),
    repeating-linear-gradient(28deg, rgba(182, 139, 45, 0.12) 0 1px, transparent 1px 92px);
  animation: page-pattern-drift var(--page-motion-duration) linear infinite;
}

.page-hero h1 {
  max-width: 980px;
  margin-bottom: 16px;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: var(--body-text-size);
}

.service-summary {
  background:
    linear-gradient(180deg, rgba(248, 251, 250, 0.94), rgba(248, 251, 250, 0.94)),
    repeating-linear-gradient(120deg, rgba(20, 124, 120, 0.08) 0 1px, transparent 1px 96px);
  background-size: auto, 140px 140px;
  animation: section-drift var(--section-motion-duration) linear infinite;
}

.inline-btn {
  width: fit-content;
  margin-top: 12px;
}

.standalone-services {
  padding-top: 56px;
}

.contact-mini {
  background: var(--white);
}

.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.two-column,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
}

.text-stack p,
.contact p {
  color: var(--muted);
  font-size: var(--body-text-size);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.stats-grid div {
  padding: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfa 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.stats-grid strong {
  display: block;
  color: var(--teal-dark);
  font-size: 2rem;
  line-height: 1;
}

.stats-grid span {
  color: var(--muted);
  font-weight: 700;
}

.services {
  background:
    linear-gradient(180deg, #f4f8f7 0%, #eef5f3 100%),
    radial-gradient(circle at 14% 10%, rgba(201, 95, 77, 0.08), transparent 24%);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(23, 32, 39, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

.service-card:hover {
  border-color: rgba(20, 124, 120, 0.26);
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
}

.service-card svg {
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  padding: 7px;
  color: var(--gold);
  background: rgba(182, 139, 45, 0.1);
  border-radius: 8px;
}

.service-card p {
  color: var(--muted);
}

.price {
  display: block;
  margin-top: auto;
  padding-top: 18px;
  color: var(--teal-dark);
  font-size: 1.08rem;
}

.contact {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(135deg, #11191e 0%, #172027 54%, #0d2b2a 100%);
  color: var(--white);
}

.contact::before {
  inset: 0;
  z-index: -1;
  opacity: calc(0.45 * var(--motion-enabled));
  background:
    linear-gradient(120deg, transparent 0 28%, rgba(116, 203, 195, 0.16) 36%, transparent 48%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 120px);
  background-size: 180% 180%, 120px 120px;
  animation: contact-flow var(--contact-motion-duration) ease-in-out infinite alternate;
}

body[data-motion-enabled="false"] .hero::before,
body[data-motion-enabled="false"] .page-hero::before,
body[data-motion-enabled="false"] .service-summary,
body[data-motion-enabled="false"] .contact::before {
  animation: none;
}

.contact .eyebrow {
  color: #f4b199;
}

.contact p,
.contact-list {
  color: #d5ddde;
}

.contact-list {
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.contact-list li {
  gap: 12px;
  margin-bottom: 12px;
}

.contact-list a {
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.contact-list svg {
  color: #74cbc3;
}

.compact-contact-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 4px;
  color: var(--ink);
}

.compact-contact-list li {
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.compact-contact-list svg {
  color: var(--teal);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  color: var(--ink);
  background: var(--surface-glass);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

label {
  display: grid;
  gap: 7px;
  color: #28343b;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: #f9fbfb;
  border: 1px solid #ccd8da;
  border-radius: 8px;
  font: inherit;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

textarea {
  resize: vertical;
  overflow-wrap: anywhere;
  word-break: break-word;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(20, 124, 120, 0.2);
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 8px 18px rgba(20, 124, 120, 0.1);
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--teal-dark);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 6vw;
  color: #d5ddde;
  background:
    linear-gradient(90deg, #11191e 0%, #172027 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 120px);
}

@keyframes hero-flow {
  0% {
    background-position: 0% 50%, 100% 40%, 0 0, 0 0;
    transform: translate3d(-1.5%, -1%, 0) scale(1.02);
  }

  100% {
    background-position: 100% 50%, 0% 60%, 42px 28px, -36px 52px;
    transform: translate3d(1.5%, 1%, 0) scale(1.04);
  }
}

@keyframes page-pattern-drift {
  from {
    transform: translate3d(-3%, -2%, 0) rotate(0deg);
  }

  to {
    transform: translate3d(3%, 2%, 0) rotate(1deg);
  }
}

@keyframes section-drift {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 0 0, 140px 140px;
  }
}

@keyframes contact-flow {
  from {
    background-position: 0% 50%, 0 0;
  }

  to {
    background-position: 100% 50%, 60px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .page-hero::before,
  .service-summary,
  .contact::before {
    animation: none;
  }
}

body[data-motion-enabled="true"] .hero::before {
  animation: hero-flow var(--motion-duration) ease-in-out infinite alternate;
}

body[data-motion-enabled="true"] .page-hero::before {
  animation: page-pattern-drift var(--page-motion-duration) linear infinite;
}

body[data-motion-enabled="true"] .service-summary {
  animation: section-drift var(--section-motion-duration) linear infinite;
}

body[data-motion-enabled="true"] .contact::before {
  animation: contact-flow var(--contact-motion-duration) ease-in-out infinite alternate;
}

.admin-body {
  min-height: 100vh;
  background: #f4f7f6;
}

.auth-locked .admin-header,
.auth-locked .admin-shell {
  visibility: hidden;
}

.admin-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    linear-gradient(90deg, rgba(251, 252, 251, 0.96), rgba(238, 245, 243, 0.9)),
    url("assets/hero-financial-documents.png") center / cover;
}

.admin-login-box {
  display: grid;
  width: min(420px, 100%);
  gap: 16px;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-login-box img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
}

.admin-login-box h1 {
  max-width: none;
  margin-bottom: 0;
  font-size: 2rem;
}

.admin-login-box p {
  margin-bottom: 0;
  color: var(--muted);
}

.admin-login-error {
  min-height: 24px;
  color: #a33222 !important;
  font-weight: 800;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 0 6vw;
  background: rgba(251, 252, 251, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.admin-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.admin-workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  width: min(1380px, calc(100% - 40px));
}

.admin-content {
  min-width: 0;
}

.admin-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 6px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(23, 32, 39, 0.05);
}

.admin-sidebar-title {
  margin: 4px 10px 8px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
}

.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 10px;
  color: #46545b;
  font-size: 0.9rem;
  font-weight: 750;
  border-radius: 6px;
}

.admin-sidebar a:hover,
.admin-sidebar a:focus-visible {
  color: var(--teal-dark);
  background: #edf5f3;
}

.admin-sidebar svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.admin-sidebar-help {
  margin: 10px 10px 2px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.admin-panel {
  scroll-margin-top: 94px;
  margin-bottom: 22px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(23, 32, 39, 0.06);
}

.admin-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-panel h1,
.admin-panel h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.admin-section-intro {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.admin-note {
  min-height: 28px;
  margin: 0;
  color: var(--teal-dark);
  font-weight: 800;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-form-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 8px;
  padding: 15px 16px;
  background: #edf5f3;
  border-left: 4px solid var(--teal);
  border-radius: 6px;
}

.admin-form-divider:first-child {
  margin-top: 0;
}

.admin-form-divider svg {
  width: 20px;
  height: 20px;
  color: var(--teal-dark);
  flex: 0 0 auto;
}

.admin-form-divider span {
  display: grid;
  gap: 2px;
}

.admin-form-divider strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.admin-form-divider small,
.form-section-help {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.admin-form-section {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 20px;
  background: #fbfcfc;
  border: 1px solid #dce6e3;
  border-radius: 8px;
}

.admin-form-section legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  color: var(--teal-dark);
  font-size: 1rem;
  font-weight: 900;
}

.admin-form-section legend svg {
  width: 18px;
  height: 18px;
}

.form-section-help {
  grid-column: 1 / -1;
  margin: -2px 0 2px;
}

.admin-form label > span,
.asset-config-grid label > span {
  color: #344249;
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-wide {
  grid-column: 1 / -1;
}

.service-editor-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stat-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
  background: #f9fbfb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.asset-config-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.5fr);
  gap: 16px;
  margin-bottom: 20px;
}

.asset-preview-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  color: #28343b;
  font-weight: 800;
  background: #f9fbfb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.asset-preview-box img {
  width: 100%;
  max-height: 210px;
  object-fit: contain;
  object-position: left center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.asset-preview-box [data-hero-preview] {
  max-height: 280px;
  object-fit: cover;
}

.layout-form {
  gap: 18px;
  padding-top: 6px;
}

.settings-group {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
  padding: 18px;
  background: #f9fbfb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.settings-group legend {
  padding: 0 8px;
  color: var(--teal-dark);
  font-weight: 900;
}

.settings-group .checkbox-label {
  align-self: end;
}

.typography-preview {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding: 24px;
  overflow: visible;
  background: linear-gradient(135deg, #ffffff 0%, #eef5f3 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.typography-preview-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--brand-text-size);
  font-weight: 800;
}

.typography-preview-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: var(--nav-text-size);
  font-weight: 700;
}

.typography-preview h1 {
  max-width: 12ch;
  margin-bottom: 0;
}

.typography-preview h2,
.typography-preview h3,
.typography-preview p {
  margin-bottom: 0;
}

.typography-preview .btn {
  width: fit-content;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-label input {
  width: 20px;
  min-height: 20px;
}

.service-editor {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #f9fbfb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-editor-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #9a2f22;
  background: #fff4f1;
  border: 1px solid #f0c7be;
  border-radius: 8px;
  cursor: pointer;
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.admin-danger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-danger p {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 920px) {
  .admin-workspace {
    display: block;
  }

  .admin-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 18px;
  }

  .admin-sidebar-title,
  .admin-sidebar-help {
    grid-column: 1 / -1;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 6vw;
    left: 6vw;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .language-switch {
    justify-content: center;
    width: 100%;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero {
    min-height: 720px;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(251, 252, 251, 0.96) 0%, rgba(251, 252, 251, 0.9) 48%, rgba(251, 252, 251, 0.35) 100%),
      linear-gradient(0deg, rgba(23, 32, 39, 0.16), rgba(23, 32, 39, 0));
  }

  .hero-content {
    margin-right: 6vw;
  }

  h1 {
    max-width: 13ch;
  }

  .two-column,
  .contact-layout,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .admin-form,
  .admin-form-section,
  .settings-group,
  .service-editor-list,
  .stat-editor-grid,
  .asset-config-grid {
    grid-template-columns: 1fr;
  }

  .admin-header,
  .admin-panel-heading,
  .admin-danger {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-header-actions {
    width: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .admin-sidebar {
    grid-template-columns: 1fr;
  }

  .admin-sidebar-title,
  .admin-sidebar-help {
    grid-column: auto;
  }

  .site-header {
    padding: 0 20px;
  }

  .brand {
    max-width: calc(100vw - 92px);
  }

  .brand-copy {
    width: auto;
    max-width: 100%;
  }

  .brand-copy small {
    white-space: normal;
  }

  .eyebrow {
    width: auto;
    white-space: normal;
  }

  .site-nav {
    right: 20px;
    left: 20px;
  }

  .hero {
    min-height: 700px;
    align-items: flex-start;
  }

  .hero-content {
    width: auto;
    max-width: 350px;
    margin: 0;
    padding: 54px 20px 80px;
  }

  .btn {
    width: 100%;
  }

  .inline-btn {
    width: 100%;
  }

  .section {
    padding: 64px 20px;
  }

  .page-hero {
    padding: 64px 20px 42px;
  }

  .section-inner {
    max-width: 350px;
    margin: 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 20px;
  }

  .site-footer {
    flex-direction: column;
    padding: 22px 20px;
  }

  .admin-shell {
    width: calc(100% - 28px);
  }

  .admin-panel {
    padding: 18px;
  }

  .admin-form-divider,
  .admin-form-section,
  .settings-group {
    padding: 16px;
  }

  .admin-header-actions {
    flex-direction: column;
  }

  .admin-header-actions .language-switch {
    width: 100%;
  }
}
