/* =========================================================
   星妍旅運公司 Little Star Travel Company
   Midnight Star Luxe — Design System
   ========================================================= */

:root {
  --navy: #0b1c33;
  --navy-mid: #132a4a;
  --navy-soft: #1e3a5f;
  --gold: #c9a46a;
  --gold-light: #e4c896;
  --gold-dark: #a07d45;
  --ivory: #f7f4ef;
  --cream: #fffdf9;
  --ink: #1a2332;
  --muted: #5a6575;
  --line: #e2d9cc;
  --white: #ffffff;
  --success: #2d6a4f;
  --error: #9b2226;
  --shadow: 0 12px 40px rgba(11, 28, 51, 0.12);
  --shadow-sm: 0 4px 16px rgba(11, 28, 51, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 76px;
  --topbar-h: 40px;
  --container: 1140px;
  --font: "Noto Sans TC", "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-display: "Cormorant Garamond", "Noto Serif TC", Georgia, serif;
  --transition: 0.28s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

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

a {
  color: var(--navy-soft);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold-dark);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; color: var(--muted); }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 0.75rem 1.25rem;
  z-index: 9999;
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: var(--ivory);
  font-size: 0.85rem;
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  align-items: center;
  padding-block: 0.45rem;
}

.topbar a {
  color: var(--gold-light);
}

.topbar a:hover {
  color: var(--white);
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy);
  flex-shrink: 0;
}

.brand:hover { color: var(--navy); }

.brand-mark {
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 1.1rem;
  position: relative;
}

.brand-mark::after {
  content: "✦";
  font-size: 0.95rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a,
.nav-list > li > button.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.85rem;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  border-radius: 8px;
}

.nav-list > li > a:hover,
.nav-list > li > button.nav-parent:hover,
.nav-list > li > a.is-active {
  color: var(--gold-dark);
  background: rgba(201, 164, 106, 0.1);
}

.nav-parent::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.6;
}

.dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 320px;
  max-width: min(420px, 90vw);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 100;
}

.nav-list > li:hover > .dropdown,
.nav-list > li:focus-within > .dropdown,
.nav-list > li.is-open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.85rem;
  line-height: 1.45;
}

.dropdown a:hover {
  background: var(--ivory);
  color: var(--navy);
}

.header-cta {
  display: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(201, 164, 106, 0.35);
}

.btn-primary:hover {
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(201, 164, 106, 0.45);
}

.btn-secondary {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn-secondary:hover {
  background: rgba(201, 164, 106, 0.15);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
}

.btn-whatsapp:hover {
  background: #1ebe57;
  color: var(--white);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(420px, 70vh, 640px);
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: var(--navy);
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(11, 28, 51, 0.92) 0%, rgba(11, 28, 51, 0.7) 45%, rgba(11, 28, 51, 0.45) 100%),
    radial-gradient(circle at 80% 20%, rgba(201, 164, 106, 0.25), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-light);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-eyebrow::before {
  content: "✦";
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.hero p {
  color: rgba(247, 244, 239, 0.88);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

.page-hero {
  min-height: 280px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(201, 164, 106, 0.2), transparent 40%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: rgba(247, 244, 239, 0.8);
  max-width: 640px;
  margin-bottom: 0;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: var(--gold-light);
}

.breadcrumb span {
  opacity: 0.5;
  margin: 0 0.4rem;
}

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

.section-alt {
  background: var(--ivory);
}

.section-dark {
  background: var(--navy);
  color: var(--ivory);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.section-dark p {
  color: rgba(247, 244, 239, 0.78);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.section-header .eyebrow {
  color: var(--gold-dark);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.section-header p {
  margin-bottom: 0;
}

/* ---------- Cards / Grid ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(201, 164, 106, 0.2), rgba(11, 28, 51, 0.08));
  display: grid;
  place-items: center;
  color: var(--gold-dark);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.6rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card-media {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
}

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

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

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

.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  color: var(--muted);
}

.feature-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7rem;
  top: 0.35rem;
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.9rem;
}

thead {
  background: var(--navy);
  color: var(--white);
}

th,
td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

tbody tr:nth-child(even) {
  background: rgba(247, 244, 239, 0.6);
}

tbody tr:hover {
  background: rgba(201, 164, 106, 0.12);
}

.table-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.price-block {
  margin-bottom: 2.5rem;
}

.price-block h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.alert-box {
  background: rgba(155, 34, 38, 0.08);
  border-left: 4px solid var(--error);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
  margin: 1.5rem 0;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--navy);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item::after {
  content: "＋";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(11, 28, 51, 0.45);
  color: var(--gold-light);
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover::after {
  opacity: 1;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11, 28, 51, 0.92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: min(960px, 100%);
}

.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  user-select: none;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(11, 28, 51, 0.55);
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--transition), border-color var(--transition);
  z-index: 2;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(201, 164, 106, 0.9);
  border-color: var(--gold);
  color: var(--navy);
}

.lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-counter {
  color: rgba(247, 244, 239, 0.85);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .lightbox {
    padding: 3.5rem 0.75rem 1.25rem;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 42px;
    height: 42px;
    left: 0.4rem;
    right: auto;
    font-size: 1.25rem;
  }

  .lightbox-next {
    left: auto;
    right: 0.4rem;
  }

  .lightbox img {
    max-height: 70vh;
  }
}

/* ---------- Forms ---------- */
.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-group .required {
  color: var(--error);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--cream);
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 164, 106, 0.25);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group.is-invalid input,
.form-group.is-invalid select,
.form-group.is-invalid textarea {
  border-color: var(--error);
}

.form-error {
  display: none;
  color: var(--error);
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

.form-group.is-invalid .form-error {
  display: block;
}

.form-message {
  display: none;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.form-message.is-success {
  display: block;
  background: rgba(45, 106, 79, 0.12);
  color: var(--success);
}

.form-message.is-error {
  display: block;
  background: rgba(155, 34, 38, 0.1);
  color: var(--error);
}

/* ---------- Contact / Map ---------- */
.contact-card {
  background: var(--navy);
  color: var(--ivory);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-card h2,
.contact-card h3 {
  color: var(--white);
}

.contact-card p,
.contact-card li {
  color: rgba(247, 244, 239, 0.8);
}

.contact-list li {
  margin-bottom: 1rem;
  padding-left: 0;
}

.contact-list strong {
  display: block;
  color: var(--gold-light);
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.contact-list a {
  color: var(--white);
}

.map-placeholder {
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, var(--ivory), var(--cream)),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      rgba(201, 164, 106, 0.06) 10px,
      rgba(201, 164, 106, 0.06) 20px
    );
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  gap: 1rem;
}

.map-placeholder .map-pin {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.map-placeholder h3 {
  margin-bottom: 0.25rem;
}

.map-placeholder p {
  max-width: 420px;
  margin-bottom: 0;
}

/* ---------- FAQ / Prose ---------- */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-item h3,
.faq-item summary {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--gold-dark);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-body,
.faq-item p {
  padding: 0 1.25rem 1.15rem;
  margin: 0;
}

.prose h2 {
  margin-top: 2.5rem;
}

.prose h3 {
  margin-top: 1.75rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem 1.25rem;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toc {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.toc h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.toc ol {
  margin-left: 1.25rem;
  list-style: decimal;
}

.toc a {
  color: var(--navy-soft);
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(circle at 10% 50%, rgba(201, 164, 106, 0.2), transparent 40%),
    var(--navy);
  padding: 3.5rem 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: rgba(247, 244, 239, 0.8);
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #071422;
  color: rgba(247, 244, 239, 0.75);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer h3 {
  color: var(--gold-light);
  font-size: 1rem;
  font-family: var(--font);
  margin-bottom: 1rem;
}

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

.site-footer a:hover {
  color: var(--gold-light);
}

.footer-brand .brand {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-brand .brand-text span {
  color: rgba(247, 244, 239, 0.55);
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem 0;
  font-size: 0.85rem;
}

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  z-index: 920;
  transition: transform var(--transition), background var(--transition);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.whatsapp-float:hover {
  background: #1ebe57;
  color: var(--white);
  transform: translateY(-3px) scale(1.04);
}

.whatsapp-float:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 5.35rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  color: var(--navy);
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
  z-index: 900;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold-light);
}

/* ---------- Scroll animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Misc ---------- */
.keywords {
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 164, 106, 0.25);
  border-radius: var(--radius);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--gold-light);
}

.stat span {
  font-size: 0.85rem;
  color: rgba(247, 244, 239, 0.7);
}

.guide-list {
  display: grid;
  gap: 0.75rem;
}

.guide-list a {
  display: block;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  font-weight: 500;
}

.guide-list a:hover {
  border-color: var(--gold);
  background: rgba(201, 164, 106, 0.08);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav.is-open {
    max-height: 80vh;
    overflow-y: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1.25rem;
    gap: 0;
  }

  .nav-list > li > a,
  .nav-list > li > button.nav-parent {
    width: 100%;
    justify-content: space-between;
    padding: 0.9rem 0.75rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    max-width: none;
    min-width: 0;
    display: none;
    padding: 0 0 0.5rem 0.75rem;
    background: var(--ivory);
  }

  .nav-list > li.is-open > .dropdown {
    display: block;
  }

  .split,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Blog / 服務資訊 ---------- */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.blog-filter {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.blog-filter:hover,
.blog-filter.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--gold-light);
}

.blog-list {
  display: grid;
  gap: 1.5rem;
}

.blog-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: inherit;
}

.blog-card-media {
  position: relative;
  min-height: 160px;
  background: var(--navy);
}

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

.blog-card-body {
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.blog-tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(201, 164, 106, 0.15);
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.75rem;
}

.blog-card h2 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  margin: 0;
  color: var(--navy);
}

.blog-card p {
  margin: 0;
  font-size: 0.95rem;
  flex: 1;
}

.blog-card .blog-more {
  font-weight: 600;
  color: var(--gold-dark);
  font-size: 0.9rem;
}

.blog-card:hover .blog-more {
  color: var(--navy);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(247, 244, 239, 0.75);
}

.article-meta .blog-tag {
  background: rgba(201, 164, 106, 0.25);
  color: var(--gold-light);
}

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

  .blog-card-media {
    aspect-ratio: 16/9;
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .topbar { font-size: 0.78rem; }
  .grid-4,
  .stat-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .section { padding: 3rem 0; }
  .hero-content { padding: 3rem 0; }
  .btn { width: 100%; }
  .btn-group { flex-direction: column; }
}
