:root {
  --color-chalk: #f7f4ef;
  --color-ivory: #f3eee4;
  --color-sand: #d9cbb8;
  --color-teal: #5ba8a0;
  --color-teal-deep: #3f8a83;
  --color-navy: #1b2a4a;
  --color-navy-soft: #2a3d63;
  --color-coral: #e07a5f;
  --color-ink: #243043;
  --color-muted: #5c6778;
  --font-serif: "Noto Serif TC", "Songti TC", serif;
  --font-sans: "Noto Sans TC", "PingFang TC", sans-serif;
  --radius-card: 14px;
  --radius-pill: 999px;
  --shadow-bloom: 0 14px 28px rgba(27, 42, 74, 0.14);
  --header-h: 4.25rem;
  --max: 72rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(91, 168, 160, 0.12), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(224, 122, 95, 0.08), transparent 55%),
    linear-gradient(180deg, #fbf9f5 0%, var(--color-chalk) 40%, #f4f0e8 100%);
  line-height: 1.7;
  min-height: 100vh;
}

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

a {
  color: var(--color-teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-navy);
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }

p { margin: 0 0 1rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-teal-deep);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.lead {
  font-size: 1.125rem;
  color: var(--color-muted);
  max-width: 38rem;
}

.section {
  padding: clamp(3rem, 7vw, 5.5rem) 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}

.section--sand {
  background: rgba(217, 203, 184, 0.28);
  max-width: none;
  padding-left: max(1.5rem, calc((100% - var(--max)) / 2 + 1.5rem));
  padding-right: max(1.5rem, calc((100% - var(--max)) / 2 + 1.5rem));
}

.section--narrow {
  max-width: 48rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.45rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-bloom);
  color: #fff;
}

.btn--navy { background: var(--color-navy); }
.btn--navy:hover { background: var(--color-navy-soft); }
.btn--teal { background: var(--color-teal); }
.btn--teal:hover { background: var(--color-teal-deep); }
.btn--coral { background: var(--color-coral); }
.btn--outline {
  background: transparent;
  color: var(--color-navy);
  border: 1.5px solid var(--color-navy);
}
.btn--outline:hover { color: var(--color-navy); background: rgba(255,255,255,0.55); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(247, 244, 239, 0.72);
  border-bottom: 1px solid rgba(27, 42, 74, 0.08);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.site-nav a {
  color: var(--color-navy);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a:hover { color: var(--color-teal-deep); }

.site-nav__cta {
  background: var(--color-navy);
  color: #fff !important;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
}

.site-nav__cta:hover {
  background: var(--color-navy-soft);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(27, 42, 74, 0.2);
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.5);
  padding: 0.55rem;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
}

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(247, 244, 239, 0.97);
    border-bottom: 1px solid rgba(27, 42, 74, 0.1);
    padding: 1rem 1.5rem 1.5rem;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
}

/* Footer */
.site-footer {
  background: var(--color-navy);
  color: rgba(247, 244, 239, 0.88);
  margin-top: 4rem;
}

.site-footer__coral {
  height: 3px;
  background: var(--color-coral);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
}

.site-footer__cta {
  max-width: 36rem;
  margin-bottom: 3rem;
}

.site-footer__cta h2 {
  color: var(--color-chalk);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.site-footer__cta p { color: rgba(247, 244, 239, 0.75); }

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li { margin-bottom: 0.45rem; }

.site-footer a {
  color: rgba(247, 244, 239, 0.78);
  text-decoration: none;
}

.site-footer a:hover { color: #fff; }

.site-footer address {
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.65;
}

.social-muted {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

.site-footer__copy {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(247, 244, 239, 0.12);
  font-size: 0.85rem;
  color: rgba(247, 244, 239, 0.55);
}

@media (max-width: 800px) {
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .site-footer__cols { grid-template-columns: 1fr; }
}

/* Cards */
.card {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.35), transparent 40%),
    var(--color-ivory);
  border: 1px solid rgba(27, 42, 74, 0.22);
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.7;
}

.card__media img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.card__body {
  padding: 1.25rem 1.35rem 1.5rem;
  position: relative;
  z-index: 1;
}

.card__body h3 { margin-bottom: 0.4rem; }
.card__body p { color: var(--color-muted); font-size: 0.95rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* Home hero — asymmetrical split */
.hero-home {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: end;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem 2rem;
}

.hero-home__copy {
  padding-bottom: 1.5rem;
}

.hero-home__brand {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--color-navy);
  margin: 0 0 1.25rem;
  line-height: 1.2;
}

.hero-home h1 {
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  font-weight: 600;
  max-width: 22ch;
}

.hero-home__layers {
  position: relative;
  min-height: 28rem;
}

.hero-home__layers img {
  border-radius: var(--radius-card);
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(27, 42, 74, 0.12);
}

.hero-home__img-main {
  width: 86%;
  margin-left: auto;
  aspect-ratio: 4/5;
}

.hero-home__img-accent {
  position: absolute;
  left: 0;
  bottom: 8%;
  width: 48%;
  aspect-ratio: 5/4;
  border: 4px solid var(--color-chalk);
}

@media (max-width: 860px) {
  .hero-home {
    grid-template-columns: 1fr;
  }
  .hero-home__layers { min-height: auto; }
  .hero-home__img-main { width: 100%; aspect-ratio: 16/11; }
  .hero-home__img-accent {
    position: relative;
    width: 70%;
    margin-top: -3rem;
    bottom: auto;
  }
}

.flagship-preview {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.flagship-preview img {
  border-radius: var(--radius-card);
  aspect-ratio: 5/4;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 800px) {
  .flagship-preview { grid-template-columns: 1fr; }
}

.quote-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.quote-card {
  padding: 1.75rem;
}

.quote-card blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--color-navy);
  line-height: 1.55;
}

.quote-card cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--color-muted);
}

@media (max-width: 700px) {
  .quote-strip { grid-template-columns: 1fr; }
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: var(--max);
  margin: 0 auto;
}

@media (max-width: 720px) {
  .split { grid-template-columns: 1fr; }
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.info-card {
  background: var(--color-ivory);
  border: 1px solid rgba(27, 42, 74, 0.2);
  border-radius: var(--radius-card);
  padding: 1.25rem;
}

.info-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-muted);
}

@media (max-width: 900px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
}

.check-list, .muted-list {
  margin: 0;
  padding-left: 1.2rem;
}

.check-list li, .muted-list li {
  margin-bottom: 0.5rem;
}

.muted-list { color: var(--color-muted); }

.cta-band {
  text-align: center;
  background: linear-gradient(135deg, rgba(91, 168, 160, 0.18), rgba(217, 203, 184, 0.35));
  border-radius: calc(var(--radius-card) + 4px);
  margin: 2rem auto 4rem;
  max-width: calc(var(--max) - 3rem);
  padding: 3rem 1.5rem;
}

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) 1.5rem 1rem;
}

.page-hero--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.page-hero--split img {
  border-radius: var(--radius-card);
  aspect-ratio: 5/4;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 800px) {
  .page-hero--split { grid-template-columns: 1fr; }
}

/* Service detail */
.service-detail__hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) 1.5rem;
  align-items: center;
}

.service-detail__media img {
  border-radius: var(--radius-card);
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
}

.service-detail__price {
  font-weight: 600;
  color: var(--color-navy);
  margin-top: 1rem;
}

@media (max-width: 800px) {
  .service-detail__hero { grid-template-columns: 1fr; }
}

/* Blog */
.post-list {
  display: grid;
  gap: 1.5rem;
}

.post-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  padding: 0;
  overflow: hidden;
}

.post-card img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
}

.post-card__body {
  padding: 1.25rem 1.25rem 1.25rem 0;
}

@media (max-width: 640px) {
  .post-card { grid-template-columns: 1fr; }
  .post-card__body { padding: 0 1.25rem 1.25rem; }
}

.article {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.article__cover {
  margin: 1.5rem 0 2rem;
}

.article__cover img {
  border-radius: var(--radius-card);
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.article__meta {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.prose h2 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }

/* Forms */
.form {
  display: grid;
  gap: 1.1rem;
  max-width: 36rem;
}

.form__field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-navy);
  font-size: 0.92rem;
}

.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid rgba(27, 42, 74, 0.25);
  border-radius: 10px;
  font: inherit;
  background: rgba(255,255,255,0.7);
  color: var(--color-ink);
}

.form__field textarea { min-height: 140px; resize: vertical; }

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: 2px solid var(--color-teal);
  outline-offset: 1px;
  border-color: var(--color-teal);
}

.form__error {
  color: #a33b2a;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  display: none;
}

.form__field.is-invalid .form__error { display: block; }
.form__field.is-invalid input,
.form__field.is-invalid select,
.form__field.is-invalid textarea {
  border-color: #a33b2a;
}

.form__status {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  display: none;
}

.form__status.is-success {
  display: block;
  background: rgba(91, 168, 160, 0.2);
  color: var(--color-navy);
}

.form__status.is-error {
  display: block;
  background: rgba(224, 122, 95, 0.2);
  color: #7a3424;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-aside {
  background: var(--color-ivory);
  border: 1px solid rgba(27, 42, 74, 0.2);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}

.contact-aside address {
  font-style: normal;
}

@media (max-width: 800px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* Pricing */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-ivory);
  border: 1px solid rgba(27, 42, 74, 0.2);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.rate-table th,
.rate-table td {
  text-align: left;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(27, 42, 74, 0.1);
  vertical-align: top;
}

.rate-table th {
  background: rgba(27, 42, 74, 0.06);
  font-family: var(--font-serif);
  color: var(--color-navy);
}

.rate-table tr:last-child td { border-bottom: none; }

.factor-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .factor-list { grid-template-columns: 1fr; }
  .rate-table { font-size: 0.9rem; display: block; overflow-x: auto; }
}

/* Reviews */
.review-grid {
  display: grid;
  gap: 1.25rem;
}

.review-card {
  padding: 1.5rem 1.65rem;
}

.review-card__meta {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin-top: 1rem;
}

.story-block {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.story-block img {
  border-radius: var(--radius-card);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 720px) {
  .story-block { grid-template-columns: 1fr; }
}

/* Pathways custom page */
.pathway-timeline {
  display: grid;
  gap: 0;
  position: relative;
  max-width: 42rem;
}

.pathway-step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding-bottom: 2rem;
  position: relative;
}

.pathway-step::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 1.8rem;
  bottom: 0;
  width: 2px;
  background: rgba(91, 168, 160, 0.45);
}

.pathway-step:last-child::before { display: none; }

.pathway-step__num {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.pathway-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 800px) {
  .pathway-board { grid-template-columns: 1fr; }
}

.legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.legal h1 { margin-bottom: 1.5rem; }
.legal h2 { margin-top: 2rem; font-size: 1.35rem; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
}
.legal th, .legal td {
  border: 1px solid rgba(27, 42, 74, 0.18);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
.legal th { background: var(--color-ivory); }

.error-page {
  text-align: center;
  padding: 6rem 1.5rem;
  max-width: 36rem;
  margin: 0 auto;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 200;
  max-width: 40rem;
  margin: 0 auto;
}

.cookie-banner__inner {
  background: var(--color-ivory);
  border: 1.5px solid rgba(27, 42, 74, 0.25);
  border-radius: var(--radius-card);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-bloom);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.cookie-banner__error {
  color: #a33b2a;
  font-size: 0.85rem;
  margin: 0.5rem 0 0;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

[data-parallax] {
  will-change: transform;
  transition: transform 0.4s linear;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 800px) {
  .team-grid { grid-template-columns: 1fr; }
}

.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}
