:root {
  --navy: #0b2744;
  --navy-deep: #07192c;
  --harbor: #123a63;
  --blue: #1c6bb5;
  --blue-bright: #2a7fd0;
  --amber: #e89b28;
  --amber-deep: #c77d12;
  --paper: #f4efe4;
  --paper-2: #ebe3d2;
  --ink: #15202b;
  --muted: #5b6773;
  --white: #ffffff;
  --line: #d7cfc0;
  --shadow: 0 18px 42px rgba(11, 39, 68, 0.16);
  --shadow-sm: 0 8px 22px rgba(11, 39, 68, 0.1);
  --radius: 6px;
  --radius-lg: 14px;
  --font: "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", sans-serif;
  --display: "Barlow Condensed", "Noto Sans TC", sans-serif;
  --header-h: 4.6rem;
  --z-header: 100;
  --z-menu: 4000;
  --z-top: 150;
  --container: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
}

body.is-locked {
  overflow: hidden;
  height: 100dvh;
}

body.is-locked .site-header {
  z-index: 1;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.65rem;
  line-height: 1.28;
  font-weight: 700;
  color: var(--navy);
}

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

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 5000;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
}

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

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

.section {
  position: relative;
  padding: 4.4rem 0;
}

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

.section-navy {
  background:
    linear-gradient(180deg, rgba(7, 25, 44, 0.88), rgba(11, 39, 68, 0.92)),
    url("../images/hero-harbor.jpg") center / cover no-repeat;
  color: var(--white);
}

.section-navy h2,
.section-navy h3,
.section-navy p,
.section-navy li {
  color: var(--white);
}

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  padding: 0.18rem 0.7rem;
  border: 1px dashed var(--amber);
  color: var(--amber-deep);
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-navy .stamp {
  border-color: rgba(232, 155, 40, 0.7);
  color: var(--amber);
}

.block-head {
  max-width: 40rem;
  margin-bottom: 2.2rem;
}

.block-head.center {
  text-align: center;
  margin-inline: auto;
}

.block-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
}

.route-line {
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--amber) 0 10px,
    transparent 10px 18px
  );
  margin: 0.4rem 0 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3.05rem;
  padding: 0.7rem 1.55rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.btn:hover {
  background: var(--blue-bright);
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: translateY(1px);
}

.btn-amber {
  background: var(--amber);
  color: var(--navy-deep);
}

.btn-amber:hover {
  background: #f0ad3d;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

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

.btn:focus-visible,
.menu-toggle:focus-visible,
.mobile-close:focus-visible,
.back-to-top:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(244, 239, 228, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(11, 39, 68, 0.08);
}

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

.logo {
  display: block;
  width: 188px;
  height: 46px;
  overflow: hidden;
  flex-shrink: 0;
}

.logo img {
  height: 46px;
  width: auto;
  max-width: none;
  object-fit: cover;
  object-position: left center;
}

.nav-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.15rem;
}

.nav-list a {
  display: block;
  padding: 0.45rem 0.7rem;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.94rem;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a.is-active {
  color: var(--blue);
  border-bottom-color: var(--amber);
}

.header-cta {
  display: none;
  white-space: nowrap;
}

.menu-toggle {
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid var(--navy);
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border-radius: var(--radius);
}

.menu-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--navy);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  z-index: var(--z-menu);
  background: var(--navy-deep);
  color: var(--white);
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem 2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  visibility: hidden;
  pointer-events: none;
}

.mobile-menu.is-open {
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.2rem;
}

.mobile-menu .logo {
  filter: brightness(0) invert(1);
}

.mobile-close {
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--white);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  margin-top: 1.4rem;
}

.mobile-nav a {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px dashed rgba(232, 155, 40, 0.35);
  font-size: 1.18rem;
  font-weight: 600;
}

.mobile-nav a.is-active {
  color: var(--amber);
}

.mobile-cta {
  margin-top: auto;
  padding-top: 1.8rem;
}

.mobile-cta p {
  color: rgba(255, 255, 255, 0.75);
}

.hero {
  position: relative;
  min-height: min(86dvh, 42rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-deep);
}

.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 25, 44, 0.82) 0%, rgba(7, 25, 44, 0.45) 58%, rgba(7, 25, 44, 0.18) 100%),
    linear-gradient(180deg, rgba(7, 25, 44, 0.15), rgba(7, 25, 44, 0.55));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 3.4rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 5.4vw, 4.1rem);
  max-width: 14ch;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.hero .lead {
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 16.5rem;
  display: grid;
  align-items: end;
  color: var(--white);
  background: var(--navy);
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 25, 44, 0.86), rgba(7, 25, 44, 0.42));
}

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

.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.84);
  max-width: 40rem;
  margin: 0;
}

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

.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.15rem 1.1rem 1rem;
  box-shadow: var(--shadow-sm);
}

.stat-card strong {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1.2rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

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

.card img {
  width: 100%;
  height: 11.5rem;
  object-fit: cover;
}

.card-body {
  padding: 1.2rem 1.2rem 1.35rem;
}

.card h3 {
  font-size: 1.12rem;
}

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

.split {
  display: grid;
  gap: 1.6rem;
  align-items: center;
}

.split img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.prose {
  max-width: 46rem;
}

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

.numbered {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.numbered li {
  display: grid;
  grid-template-columns: 2.3rem 1fr;
  gap: 0.8rem;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1rem 1.05rem;
}

.numbered .num {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--blue);
  line-height: 1.2;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.6rem;
  border: 1px solid var(--line);
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 32rem;
}

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

th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

tr:hover td {
  background: #faf7f0;
}

.note {
  background: var(--paper-2);
  border-left: 4px solid var(--amber);
  padding: 0.9rem 1rem;
  color: var(--ink);
}

.cta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  justify-content: space-between;
  background: var(--navy);
  color: var(--white);
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius-lg);
}

.cta-bar p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0.2rem 0 0;
}

.cta-bar h2 {
  color: var(--white);
  margin: 0;
}

.contact-grid {
  display: grid;
  gap: 1.4rem;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.2rem 1.25rem;
}

.contact-card a {
  color: var(--blue);
  font-weight: 700;
}

.form {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.3rem;
  box-shadow: var(--shadow-sm);
}

.form-row {
  margin-bottom: 0.95rem;
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #cfc6b4;
  border-radius: var(--radius);
  background: #fffdf8;
}

.form-row textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.form-row.is-invalid input,
.form-row.is-invalid textarea {
  border-color: #c0392b;
}

.form-row .error {
  display: none;
  color: #c0392b;
  font-size: 0.86rem;
  margin-top: 0.25rem;
}

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

.form-success {
  display: none;
  background: #eef8ee;
  border: 1px solid #b7dfb7;
  padding: 1rem;
}

.form-success.is-visible {
  display: block;
}

.map-wrap {
  min-height: 18rem;
  border: 1px solid var(--line);
  background: #dce6ef;
  overflow: hidden;
}

.map-wrap iframe {
  width: 100%;
  height: 18rem;
  border: 0;
  display: block;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}

.faq p {
  margin: 0.7rem 0 0.2rem;
}

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  gap: 1.4rem;
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
}

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

.footer-copy {
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

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

.blog-item {
  display: grid;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}

.blog-item img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.blog-item .card-body {
  padding: 0 1.2rem 1.2rem;
}

.article {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.4rem 1.2rem 2rem;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: var(--z-top);
  width: 2.8rem;
  height: 2.8rem;
  border: 0;
  border-radius: 50%;
  background: var(--amber);
  color: var(--navy-deep);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow-sm);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

.icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.icon-row img {
  width: 4.2rem;
  height: auto;
}

.price-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin: 1.2rem 0;
}

.price-highlight div {
  background: var(--navy);
  color: var(--white);
  padding: 1.1rem;
  text-align: center;
}

.price-highlight strong {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  color: var(--amber);
}

@media (min-width: 760px) {
  .nav-list {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .header-cta {
    display: inline-flex;
  }

  .stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid-2,
  .split,
  .contact-grid,
  .footer-grid,
  .blog-item {
    grid-template-columns: 1.05fr 1fr;
  }

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

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

  .split img,
  .blog-item img {
    height: 100%;
    min-height: 16rem;
  }

  .article {
    padding: 2rem 2.2rem 2.6rem;
  }
}

@media (min-width: 1020px) {
  .hero-content {
    padding-bottom: 4.2rem;
  }
}

@media (max-width: 430px) {
  .container {
    width: min(100% - 1.5rem, var(--container));
  }

  .logo {
    width: 148px;
    height: 38px;
  }

  .logo img {
    height: 38px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .btn {
    width: 100%;
  }

  .hero-actions .btn,
  .cta-bar .btn,
  .header-cta {
    width: auto;
  }
}
