:root {
  --eclipse: #0a0a0c;
  --eclipse-deep: #060608;
  --surface: #121018;
  --surface-lift: #1a1624;
  --lunar: #c5c8ce;
  --lunar-dim: #8b9099;
  --violet: #7a6b8a;
  --violet-soft: #5c4f6e;
  --petal: #a85468;
  --petal-soft: #c47a88;
  --halo: rgba(168, 84, 104, 0.18);
  --halo-violet: rgba(122, 107, 138, 0.22);
  --line: rgba(197, 200, 206, 0.12);
  --font-display: "Cormorant Garamond", "Noto Serif TC", Georgia, serif;
  --font-body: "Source Sans 3", "Noto Sans TC", sans-serif;
  --shell: min(1120px, calc(100% - 2.5rem));
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--lunar);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--halo-violet), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 30%, var(--halo), transparent 50%),
    radial-gradient(ellipse 50% 35% at 0% 80%, rgba(122, 107, 138, 0.12), transparent 45%),
    var(--eclipse);
}

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

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--lunar);
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 0 0 0.6em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); margin: 0 0 0.55em; }
h3 { font-size: 1.35rem; margin: 0 0 0.4em; }

p { margin: 0 0 1em; }

.shell {
  width: var(--shell);
  margin-inline: auto;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 10, 12, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--lunar);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--lunar-dim);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.nav-cta {
  color: var(--lunar);
}

.nav-cta {
  padding: 0.45rem 1rem;
  border: 1px solid var(--violet);
  box-shadow: 0 0 0 4px transparent, 0 0 24px var(--halo);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.nav-cta:hover {
  border-color: var(--petal);
  box-shadow: 0 0 0 4px rgba(168, 84, 104, 0.15), 0 0 28px var(--halo);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 1.4rem;
  height: 1px;
  background: var(--lunar);
  margin: 0.35rem 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.35s ease, background 0.25s ease;
}

.btn-bloom {
  color: var(--eclipse);
  background: var(--lunar);
  border-color: var(--lunar);
  box-shadow:
    0 0 0 6px rgba(197, 200, 206, 0.08),
    0 0 0 14px rgba(168, 84, 104, 0.08),
    0 0 36px var(--halo);
}

.btn-bloom:hover {
  transform: translateY(-1px);
  color: var(--eclipse);
  box-shadow:
    0 0 0 8px rgba(197, 200, 206, 0.1),
    0 0 0 18px rgba(168, 84, 104, 0.12),
    0 0 48px var(--halo);
}

.btn-ghost {
  color: var(--lunar);
  background: transparent;
  border-color: var(--violet);
}

.btn-ghost:hover {
  border-color: var(--petal-soft);
  box-shadow: 0 0 24px var(--halo);
}

.text-link {
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--petal);
  color: var(--petal-soft);
}

.text-link:hover { color: var(--lunar); border-color: var(--lunar); }

/* Hero — full-bleed, brand first */
.hero--bleed {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(0.7);
  animation: eclipse-rise 1.4s ease-out both;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 12, 0.35) 0%, rgba(10, 10, 12, 0.75) 55%, var(--eclipse) 100%),
    radial-gradient(circle at 70% 40%, var(--halo), transparent 45%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 4rem 0 5rem;
  max-width: 36rem;
  animation: fade-up 0.9s 0.2s ease both;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--lunar);
  margin: 0 0 0.75rem;
  letter-spacing: 0.04em;
}

.lede {
  font-size: 1.15rem;
  color: var(--lunar-dim);
  max-width: 34rem;
}

.page-hero {
  padding: 3.5rem 0 1rem;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse 50% 80% at 20% 0%, var(--halo-violet), transparent 60%);
}

.page-hero--map {
  background: radial-gradient(ellipse 40% 100% at 80% 50%, var(--halo), transparent 55%);
}

.eyebrow {
  font-size: 0.9rem;
  color: var(--lunar-dim);
  margin-bottom: 0.5rem;
}

.meta { color: var(--lunar-dim); font-size: 0.92rem; }

/* Sections */
.section {
  padding: 4rem 0;
}

.section--halo {
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, var(--halo), transparent 55%),
    var(--surface);
  border-block: 1px solid var(--line);
}

.section--cta {
  padding-bottom: 5rem;
}

.section-lead {
  color: var(--lunar-dim);
  max-width: 36rem;
}

.section-foot { margin-top: 1.5rem; }

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

.media-frame {
  margin: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 0 60px var(--halo-violet);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 80px rgba(10, 10, 12, 0.35);
  pointer-events: none;
}

.media-frame--wide { margin: 1.5rem 0 2rem; }

.media-frame img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

/* Offers / services */
.offer-list { margin-top: 2rem; }

.offer-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.offer-row h3 a {
  color: var(--lunar);
  text-decoration: none;
}

.offer-row h3 a:hover { color: var(--petal-soft); }

.offer-meta {
  color: var(--violet);
  white-space: nowrap;
  font-size: 0.95rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.service-card {
  background: var(--surface-lift);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow 0.4s ease, border-color 0.3s ease;
}

.service-card:hover {
  border-color: var(--violet);
  box-shadow: 0 0 40px var(--halo);
}

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

.service-card-body { padding: 1.25rem 1.35rem 1.5rem; }

.service-card h2 {
  font-size: 1.4rem;
}

.service-card h2 a {
  color: var(--lunar);
  text-decoration: none;
}

.narrow { max-width: 720px; }

.check-list {
  padding-left: 1.1rem;
  margin: 0 0 1.5rem;
}

.check-list li { margin-bottom: 0.45rem; }

/* Quotes */
.quote-stack { display: grid; gap: 1.5rem; margin-top: 1.5rem; }

.quote {
  margin: 0;
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border-left: 2px solid var(--petal);
  box-shadow: 0 0 40px rgba(122, 107, 138, 0.08);
}

.quote p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--lunar);
}

.quote footer {
  font-size: 0.9rem;
  color: var(--lunar-dim);
}

.cta-band {
  text-align: center;
  padding: 3rem 1.5rem;
  background:
    radial-gradient(circle at 50% 50%, var(--halo), transparent 60%),
    var(--surface-lift);
  border: 1px solid var(--line);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.price-panel {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.price-panel--focus {
  border-color: var(--petal);
  box-shadow: 0 0 0 6px rgba(168, 84, 104, 0.1), 0 0 48px var(--halo);
}

.price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--petal-soft);
  margin: 0.25rem 0;
}

.note { color: var(--lunar-dim); font-size: 0.92rem; }

/* Blog */
.blog-list { display: grid; gap: 2.5rem; }

.blog-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.75rem;
  align-items: start;
}

.blog-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 0 30px var(--halo-violet);
}

.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }

.tag {
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--violet-soft);
  color: var(--lunar-dim);
}

/* Search map */
.map-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.map-step {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.map-step::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 60%;
  background: radial-gradient(circle, var(--halo), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.map-step:hover::before { opacity: 1; }

.step-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--petal);
  display: block;
  margin-bottom: 0.5rem;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
}

.contact-form,
.contact-aside {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.field { margin-bottom: 1.15rem; }

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
  color: var(--lunar-dim);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  color: var(--lunar);
  background: var(--eclipse-deep);
  border: 1px solid var(--violet-soft);
  font-family: inherit;
  font-size: 1rem;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--petal);
  box-shadow: 0 0 0 3px rgba(168, 84, 104, 0.2);
}

.field-error {
  color: var(--petal-soft);
  font-size: 0.85rem;
  margin: 0.35rem 0 0;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--violet);
}

.form-status--ok {
  border-color: var(--lunar-dim);
  color: var(--lunar);
}

.form-status--error {
  border-color: var(--petal);
  color: var(--petal-soft);
}

.prose h2 { margin-top: 1.75rem; }
.prose ul { padding-left: 1.2rem; }

.error-page {
  padding: 5rem 0;
  text-align: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  background: var(--eclipse-deep);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.35rem;
}

.footer-tagline { color: var(--lunar-dim); }

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-legal a {
  color: var(--lunar-dim);
  text-decoration: none;
}

.footer-legal a:hover { color: var(--petal-soft); }

.footer-copy {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--lunar-dim);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--surface-lift);
  border-top: 1px solid var(--violet);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.45);
  padding: 1.1rem 0;
}

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.cookie-inner p { margin: 0; flex: 1 1 280px; font-size: 0.92rem; }

.cookie-actions {
  display: flex;
  gap: 0.65rem;
}

/* Motion */
@keyframes eclipse-rise {
  from { transform: scale(1.06); opacity: 0.6; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 900px) {
  .split,
  .blog-row,
  .contact-layout,
  .pricing-grid,
  .map-steps,
  .footer-inner,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--eclipse-deep);
    border-bottom: 1px solid var(--line);
  }

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

  .offer-row { flex-direction: column; gap: 0.5rem; }

  .hero--bleed { min-height: 78vh; }
}
