/* Shared colour layer for English and Traditional Chinese pages. */
:root {
  --brand-blue: #1d4ed8;
  --brand-blue-hover: #173ea9;
  --brand-teal: #0f766e;
  --brand-ink: #153047;
  --brand-muted: #475569;
  --brand-sky: #eff8ff;
  --brand-mint: #ecfdf5;
  --brand-cream: #fff7e8;
  --brand-orange: #b45309;
  --brand-line: #cfdfec;
  --brand-footer: #132c3b;
}

body { color: var(--brand-ink); }
::selection { background: #c7e6ff; color: var(--brand-ink); }

/* Keep reading and navigation links distinct from their surrounding text. */
main a:not([class]), .service-detail, .read-more, .breadcrumb a,
.cta-alt-link a { color: var(--brand-blue); }
main a:not([class]):hover, .service-detail:hover, .breadcrumb a:hover,
.cta-alt-link a:hover { color: var(--brand-blue-hover); }
body > nav, body > header { border-bottom-color: var(--brand-line); }
.home-brand, .brand, .nav-links a, .top nav a, .lang { color: var(--brand-ink); }
.nav-links a:hover, .top nav a:hover, .lang:hover { color: var(--brand-blue); }

/* Soft coastal colours give the opening view a clear, bright identity. */
.hero, .page-hero, .cta {
  background: linear-gradient(120deg, #e5f1ff 0%, #effaf7 62%, #fff3df 100%);
  border-bottom: 1px solid var(--brand-line);
}
.hero h1, .page-hero h1 { color: var(--brand-ink); }
.hero-subtitle, .hero-subtitle-cn, .page-hero p, .eyebrow,
.stat-label, .benefit-stat-label, .cta p { color: var(--brand-muted); }
.eyebrow { color: var(--brand-teal); font-weight: 700; }
.hero-stats .stat {
  padding: 1rem 1.25rem;
  border: 1px solid var(--brand-line);
  border-radius: 14px;
  background: #ffffffd9;
}
.stat-number, .benefit-stat-number { color: var(--brand-blue); }
.stat:nth-child(2) .stat-number { color: var(--brand-teal); }
.stat:nth-child(3) .stat-number { color: var(--brand-orange); }

/* Use the same primary and secondary actions in both style systems. */
.nav-cta, .btn-primary, .button.primary, .btn-submit, .btn-inline {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}
.nav-cta:hover, .btn-primary:hover, .button.primary:not(:disabled):hover,
.btn-submit:not(:disabled):hover, .btn-inline:hover {
  background: var(--brand-blue-hover);
  border-color: var(--brand-blue-hover);
  color: #fff;
}
.btn-secondary, .button:not(.primary) {
  background: #fff;
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}
.btn-secondary:hover, .button:not(.primary):not(:disabled):hover {
  background: #e7efff;
  color: var(--brand-blue-hover);
  border-color: var(--brand-blue-hover);
}
.btn-submit:disabled, .button:disabled {
  background: #526477;
  border-color: #526477;
  color: #fff;
}

/* Colour marks the cards without changing their content or order. */
.services, .benefits { background: var(--brand-sky); }
.service-card, .grid > .card, .guide-grid > .card, .blog-card, .case-card {
  --card-accent: var(--brand-blue);
  --card-tint: #edf3ff;
  border-color: var(--brand-line);
  border-top: 4px solid var(--card-accent);
  background: #fff;
}
.service-card:nth-child(3n+2), .grid > .card:nth-child(3n+2),
.guide-grid > .card:nth-child(3n+2), .blog-card:nth-child(3n+2) {
  --card-accent: var(--brand-teal);
  --card-tint: #e6f7f0;
}
.service-card:nth-child(3n), .grid > .card:nth-child(3n),
.guide-grid > .card:nth-child(3n), .blog-card:nth-child(3n) {
  --card-accent: var(--brand-orange);
  --card-tint: var(--brand-cream);
}
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  background: var(--card-tint);
  border-radius: 16px;
}
.service-card:hover, .blog-card:hover, .case-card:hover {
  border-color: var(--card-accent);
  box-shadow: 0 10px 30px #15304712;
}
.service-card h3, .blog-card h2, .case-header-left h2 { color: var(--brand-ink); }
.blog-tag, .case-tag { background: #e6f7f0; color: #075b54; }
.case-header { background: var(--brand-sky); }
.benefit-list li::before { background: var(--brand-teal); }
.benefit-stats { box-shadow: 0 4px 24px #15304712; border: 1px solid var(--brand-line); }

#wechat { background: #edf9f4; }
#wechat h2 { color: #075b54; }
#wechat .service-card, #wechat .card { --card-accent: var(--brand-teal); }
html[lang="zh-Hant"] #wechat {
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid #b9ded1;
  border-radius: 20px;
}

.how-it-works, .cta-banner {
  background: linear-gradient(120deg, #153a52, #0e5a60);
  color: #fff;
}
.how-it-works .section-header h2, .cta-banner h2 { color: #fff; }
.how-it-works .section-header p, .step p, .cta-banner p { color: #d9eeef; }
.step-number { background: #ffe0a3; color: var(--brand-ink); }
.btn-cta-white { background: #fff; color: var(--brand-blue); }
.btn-cta-white:hover { background: #e7efff; color: var(--brand-blue-hover); }
.case-facts div { border-top-color: var(--brand-teal); }
.case-workflow a:not([class]) { color: #d9f7ec; }
.case-workflow a:not([class]):hover { color: #fff; }
.case-scope { border-left-color: var(--brand-teal); background: #edf9f4; }

.callout, .highlight-box, .example, .case-quote {
  background: var(--brand-cream);
  border-color: #e7c79f;
}
.highlight-box, .case-quote { border-left-color: var(--brand-orange); }
.cta-inline { background: var(--brand-sky); border-color: var(--brand-line); }
.table-scroll thead th, .comparison-table thead th { background: var(--brand-ink); color: #fff; }
.comparison-table tr:hover { background: var(--brand-sky); }
.inquiry-card, .planner { background: var(--brand-sky); border-color: var(--brand-line); }
.planner-results, #booking-confirmation { border-color: var(--brand-teal); background: #f2fbf7; }
.form-group input, .form-group textarea, .booking-grid input,
.booking-grid select, .planner input { border-color: #657b91; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--brand-blue); }

/* Inline modal colours are handled by these classes; visibility stays in JS. */
.modal-book { background: var(--brand-blue); color: #fff; }
.modal-book:hover { background: var(--brand-blue-hover); color: #fff; }
.modal-inquiry { background: var(--brand-sky); color: var(--brand-ink); }
.modal-inquiry:hover { background: #dfefff; color: var(--brand-ink); }
#start-modal-close { color: var(--brand-muted); }

footer { background: var(--brand-footer); color: #d8e8f5; }
footer a, .footer-links a, footer a[href^="tel:"], .footer-copy { color: #d8e8f5; }
footer a:hover, .footer-links a:hover { color: #fff; }
.footer-logo img { background: #fff; border-radius: 8px; }
:where(a, button, summary, input, select, textarea):focus-visible,
.form-group input:focus-visible, .form-group textarea:focus-visible,
.planner input:focus-visible, .planner button:focus-visible,
.planner-results:focus, .table-scroll:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 4px;
}
footer :where(a, button):focus-visible,
.how-it-works a:focus-visible, .cta-banner a:focus-visible,
.case-workflow a:focus-visible { outline-color: #ffe0a3; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .service-card, .blog-card, .case-card, .btn-primary, .btn-secondary { transition: none; }
  .service-card:hover, .blog-card:hover, .case-card:hover, .btn-primary:hover { transform: none; }
}
