:root {
  --blue: #3f50ae;
  --ink: #4b5360;
  --muted: #676e79;
  --line: #d5d7dc;
  --paper: #f7f7f8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.8;
}

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

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

.site-header {
  min-height: 84px;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 248, .98);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  color: #39404b;
  font-size: 25px;
  white-space: nowrap;
}

.brand img {
  width: 24px;
  height: 24px;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 35px;
  color: #777d87;
  font-size: 14px;
}

.nav .active {
  color: #1f3f99;
  font-weight: 700;
}

.menu-button {
  display: none;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  content: "";
  display: block;
  height: 2px;
  margin: 7px 0;
  background: #333946;
}

.section {
  padding: 110px 40px;
}

.hero,
.portfolio,
.services {
  border-bottom: 1px solid var(--line);
}

.hero {
  background: var(--paper);
  display: grid;
  grid-template-columns: minmax(280px, 540px) minmax(360px, 540px);
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  min-height: 770px;
}

.copy {
  max-width: 560px;
}

h1,
h2 {
  margin: 0 0 24px;
  color: var(--blue);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  font-size: 40px;
}

h2 {
  font-size: 28px;
}

p {
  margin: 0 0 34px;
  color: var(--ink);
}

.button {
  display: inline-flex;
  min-width: 225px;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  border-radius: 32px;
  background: var(--blue);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.hero-image {
  width: 540px;
  height: 490px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
}

.portfolio {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 60px;
  min-height: 480px;
}

.image-pair {
  display: grid;
  grid-template-columns: 235px 1fr;
  align-items: center;
  gap: 64px;
}

.image-pair img,
.gallery-strip img,
.product-grid img {
  border-radius: 10px;
  object-fit: cover;
}

.image-pair .small {
  width: 235px;
  height: 128px;
}

.image-pair .large {
  width: 355px;
  height: 266px;
}

.narrow {
  max-width: 455px;
}

.text-link,
.light-link {
  color: var(--blue);
  font-weight: 500;
  border-bottom: 1px solid rgba(63, 80, 174, .25);
}

.text-link span,
.light-link span {
  margin-left: 10px;
}

.services {
  background: var(--paper);
  display: grid;
  grid-template-columns: minmax(260px, 470px) minmax(320px, 565px);
  gap: 120px;
}

.services h2 {
  font-size: 27px;
}

.highlight {
  background: var(--blue);
  color: #fff;
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  align-items: center;
  gap: 70px;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.gallery-strip img {
  width: 100%;
  height: 210px;
}

.highlight h2,
.highlight p,
.highlight a {
  color: #fff;
}

.highlight-copy {
  max-width: 390px;
}

.products h2 {
  margin-bottom: 36px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 36px;
}

.product-grid img {
  width: 100%;
  height: 465px;
}

.product-grid img:nth-child(4) {
  grid-column: 2;
}

.contact {
  min-height: 480px;
  background: var(--blue);
  color: #fff;
}

.contact h2,
.contact p,
.contact a,
.contact address {
  color: #fff;
}

.contact p,
.contact address {
  max-width: 410px;
  font-style: normal;
  font-weight: 700;
}

.contact address {
  margin-left: 44px;
}

.subpage {
  min-height: calc(100vh - 84px);
  background: #fff;
}

.page-hero {
  padding: 135px 40px 70px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 720px;
  font-size: 42px;
}

.page-hero p {
  max-width: 760px;
}

.feature-list,
.equipment-grid,
.album-grid,
.contact-cards {
  padding: 80px 40px 110px;
}

.feature-list {
  display: grid;
  gap: 60px;
  text-align: center;
}

.feature-list.two {
  grid-template-columns: repeat(2, 1fr);
}

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

.feature-list article {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-list p {
  margin-bottom: 0;
}

.services-page {
  min-height: calc(100vh - 84px);
}

.services-page .service-intro {
  padding-top: 76px;
  padding-bottom: 115px;
  border-bottom: 0;
  text-align: center;
}

.services-page .service-intro h1,
.services-page .service-intro p {
  margin-left: auto;
  margin-right: auto;
}

.services-page .service-intro h1 {
  margin-bottom: 24px;
  font-size: 42px;
}

.services-page .service-intro p {
  max-width: 930px;
  font-size: 27px;
  line-height: 1.75;
}

.services-page .feature-list.three {
  padding: 20px 80px 70px;
  gap: 90px;
}

.services-page .feature-list article {
  min-height: 120px;
}

.services-page .feature-list h2 {
  margin-bottom: 24px;
  font-size: 28px;
}

.services-page .feature-list p {
  font-size: 24px;
  line-height: 1.6;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}

.equipment-grid article {
  text-align: center;
}

.equipment-grid img {
  width: 100%;
  aspect-ratio: 1.35;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 24px;
}

.equipment-grid h2 {
  font-size: 25px;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.album-grid img {
  width: 100%;
  aspect-ratio: 1.25;
  border-radius: 10px;
  object-fit: cover;
}

.contact-page {
  min-height: 620px;
  background: var(--blue);
}

.contact-page h1,
.contact-page h2,
.contact-page p,
.contact-page a {
  color: #fff;
}

.contact-page .contact-cards {
  padding: 36px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 46px;
  max-width: 980px;
}

.contact-cards article {
  min-width: 0;
}

.contact-cards h2 {
  font-size: 24px;
}

@media (min-width: 1200px) {
  .section {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 0 24px;
  }

  .nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .section {
    padding: 72px 24px;
  }

  .hero,
  .portfolio,
  .services,
  .highlight {
    grid-template-columns: 1fr;
    gap: 42px;
    min-height: auto;
  }

  .hero-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1.1;
  }

  .image-pair {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .image-pair .small,
  .image-pair .large {
    width: 100%;
    height: auto;
  }

  .gallery-strip,
  .product-grid,
  .feature-list.two,
  .feature-list.three,
  .equipment-grid,
  .album-grid,
  .contact-page .contact-cards {
    grid-template-columns: 1fr;
  }

  .gallery-strip img,
  .product-grid img {
    height: auto;
  }

  .product-grid img:nth-child(4) {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .brand {
    gap: 14px;
    font-size: 21px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 25px;
  }

  .button {
    width: 100%;
  }

  .contact address {
    margin-left: 0;
  }

  .page-hero {
    padding: 88px 24px 54px;
  }

  .page-hero h1 {
    font-size: 36px;
  }

  .feature-list,
  .equipment-grid,
  .album-grid {
    padding: 56px 24px 72px;
  }
}
