:root {
  --ink: #16363b;
  --muted-ink: #527176;
  --paper: rgba(255, 255, 255, 0.91);
  --line: rgba(22, 54, 59, 0.18);
  --teal: #3a8b8c;
  --coral: #d56f5f;
  --violet: #8a7195;
  --green: #5c806a;
  --sans: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #dbeaf0;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
}

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

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

.site-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  overflow: hidden;
  padding: 34px clamp(24px, 5vw, 80px) 22px;
}

.hero-media,
.hero-media picture,
.hero-media img,
.hero-wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  z-index: -2;
  overflow: hidden;
  background: #dbeaf0;
}

.hero-media img {
  object-fit: cover;
  object-position: center;
}

.hero-wash {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(239, 248, 248, 0.93) 0%, rgba(239, 248, 248, 0.72) 44%, rgba(239, 248, 248, 0.12) 75%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(17, 66, 73, 0.12));
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: grid;
  gap: 7px;
  width: clamp(190px, 23vw, 310px);
}

.brand img {
  width: 100%;
  height: auto;
}

.brand span,
.phase {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.brand span {
  color: var(--muted-ink);
}

.phase {
  padding-top: 7px;
  color: rgba(22, 54, 59, 0.74);
}

.resource-panel {
  align-self: center;
  width: min(760px, 60vw);
  margin: 8vh 0 5vh;
}

.resource-heading {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 18px;
}

.resource-heading p,
.resource-heading h1 {
  margin: 0;
}

.resource-heading p {
  order: 2;
  padding-bottom: 8px;
  color: var(--muted-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.resource-heading h1 {
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 400;
  line-height: 1;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--paper);
  backdrop-filter: blur(8px);
}

.resource-link {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr 28px;
  align-items: center;
  min-height: 126px;
  padding: 22px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.resource-link::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  content: "";
  background: var(--accent);
}

.resource-link:hover,
.resource-link:focus-visible {
  color: #fff;
  background: var(--accent);
  outline: none;
}

.resource-link:hover .resource-number,
.resource-link:hover small,
.resource-link:focus-visible .resource-number,
.resource-link:focus-visible small {
  color: rgba(255, 255, 255, 0.78);
}

.resource-link--teal { --accent: var(--teal); }
.resource-link--coral { --accent: var(--coral); }
.resource-link--violet { --accent: var(--violet); }
.resource-link--green { --accent: var(--green); }

.resource-number {
  align-self: start;
  padding-top: 4px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
}

.resource-copy {
  display: grid;
  gap: 8px;
}

.resource-copy strong {
  font-size: clamp(24px, 2.3vw, 36px);
  font-weight: 400;
  line-height: 1;
}

.resource-copy small {
  color: var(--muted-ink);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.resource-arrow {
  font-size: 20px;
  text-align: right;
}

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 8px 10px;
  border-left: 3px solid rgba(58, 139, 140, 0.78);
  background: rgba(239, 248, 248, 0.9);
  color: #264e54;
  font-size: 10px;
  line-height: 1.5;
  backdrop-filter: blur(5px);
}

.site-footer p {
  max-width: 560px;
  margin: 0;
}

.site-footer p:last-child {
  text-align: right;
}

.contact-float {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 20;
  display: grid;
  gap: 10px;
}

.contact-float a {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 5px 16px rgba(22, 54, 59, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.contact-float a:hover,
.contact-float a:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(22, 54, 59, 0.3);
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.contact-float a:focus-visible {
  outline-color: var(--ink);
}

.contact-float__whatsapp {
  background: #25d366;
}

.contact-float__phone {
  background: var(--ink);
}

.contact-float svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.contact-float__whatsapp svg {
  stroke-width: 1.8;
}

@media (max-width: 900px) {
  .site-shell {
    overflow: visible;
    padding: 28px 24px 20px;
  }

  .resource-panel {
    width: min(680px, 86vw);
    margin: 11vh 0 8vh;
  }
}

@media (max-width: 700px) {
  .site-shell {
    min-height: 100svh;
    padding: 24px 18px 16px;
  }

  .hero-media {
    position: fixed;
  }

  .hero-media img {
    object-position: center bottom;
  }

  .hero-wash {
    background:
      linear-gradient(180deg, rgba(242, 249, 249, 0.96) 0%, rgba(242, 249, 249, 0.86) 57%, rgba(242, 249, 249, 0.35) 100%);
  }

  .brand {
    width: 200px;
  }

  .brand span {
    font-size: 9px;
  }

  .phase {
    font-size: 9px;
  }

  .resource-panel {
    width: 100%;
    margin: 10vh 0 7vh;
  }

  .resource-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 14px;
  }

  .resource-heading p {
    order: 0;
    padding: 0;
    font-size: 9px;
  }

  .resource-heading h1 {
    font-size: 34px;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }

  .resource-link {
    min-height: 86px;
    padding: 16px 18px;
  }

  .resource-copy {
    gap: 5px;
  }

  .resource-copy strong {
    font-size: 25px;
  }

  .site-footer {
    display: grid;
    gap: 5px;
    padding: 8px 10px;
    font-size: 9px;
  }

  .site-footer p:last-child {
    text-align: left;
  }

  .contact-float {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    gap: 8px;
  }

  .contact-float a {
    width: 48px;
    height: 48px;
  }

  .contact-float svg {
    width: 22px;
    height: 22px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .resource-grid {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: none;
  }
}
