:root {
  --color-primary: #b5864d;
  --color-secondary: #ddcfbc;
  --color-header-text: #62543c;
}

body {
  color: #000;
  letter-spacing: 1px;
  font-weight: 400;
  text-align: justify;
  text-align-last: left;
  line-height: 2;
}

li {
  display: flex;
  align-items: center;
}

a {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.divider {
  width: 90vw;
  max-width: 1200px;
  height: 1px;
  background-color: #eee;
  border: none;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  width: 100vw;
  gap: 30px;
}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90vw;
  max-width: 1200px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 1000;
  width: 100vw;
  background: var(--color-secondary);
  color: var(--color-header-text);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 1px 1px 10px rgba(51, 51, 51, 0.3);
}

.header__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90vw;
  max-width: 1200px;
  height: 60px;
}

.header__brand {
  display: flex;
  justify-content: start;
  align-items: center;
  width: 20%;
}

.header__brand .logo__link img {
  height: 55px;
}

.header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60%;
}

.header__nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.header__nav ul li {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.header__mobile {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  width: 90vw;
  max-width: 1200px;
}

.mobile__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.mobile__brand .logo__link img {
  height: 55px;
}

.mobile__brand .logo__link {
  height: 55px;
}

.mobile__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  padding: 70px 0;
}

.mobile__nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  gap: 0.5rem;
}

.mobile__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 30px 0 0 0;
}

@media (max-width: 992px) {
  .header__inner {
    display: none;
  }
  .header__mobile {
    display: flex;
  }
}

.banner {
  position: relative;
  width: 100vw;
  height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("../images/banner-1.webp") center/cover no-repeat;
  color: #62543c;
  text-align: center;
  overflow: hidden;
}

.banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 2rem;
  width: 100%;
  max-width: 1200px;
}

.banner__content {
  max-width: 700px;
}

.banner__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.banner__subtitle {
  margin-bottom: 2rem;
}

.banner__button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 300px;
  padding: 0.5rem 2rem;
  background: #fff;
  color: var(--color-primary);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.banner__button:hover {
}

.layout-split {
  display: flex;
  justify-content: center;
  width: 100vw;
  padding: 6rem 0;
}

.layout-split__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90vw;
  max-width: 1200px;
  gap: 4rem;
}

.layout-split__media {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.layout-split__img {
  width: 100%;
  max-width: 400px;
  border-radius: 5px;
  height: auto;
  object-fit: contain;
}

.layout-split__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: justify;
  letter-spacing: 3px;
}

.layout-split__title {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.layout-split__text {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 3rem;
  color: var(--color-header-text);
}

.layout-split__button {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 60px;
  width: auto;
  background: var(--color-primary);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.layout-split__button:hover {
}

.layout-split--reverse .layout-split__inner {
  flex-direction: row-reverse;
}

@media (max-width: 1000px) {
  .layout-split__inner {
    flex-direction: column;
    gap: 4rem;
    text-align: center;
  }

  .layout-split--reverse .layout-split__inner {
    flex-direction: column;
  }

  .layout-split__img {
    width: 90vw;
    max-width: 500px;
  }
}

/* ===== Section (滿版背景) ===== */

.cards {
  width: 100vw;
  background-image: url(../images/banner-2.webp);
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: cover;

  padding: 100px 0;
}

/* ===== Inner (內容安全區) ===== */

.cards__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: center;

  gap: 40px;

  max-width: 1200px;
  margin: 0 auto;
}

/* ===== Card Item ===== */

.cards__item {
  width: 100%;
}

/* ===== Title ===== */

.cards__title {
  font-size: 24px;
  color: #fff;
  margin: 0 0 16px;
}

/* ===== List ===== */

.cards__list {
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #ffffff;
  color: var(--color-header-text);
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.5);
}

/* ===== Entry ===== */

.cards__entry {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ===== Row ===== */

.cards__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.cards__name {
  flex: 1;
}

.cards__price {
  min-width: 60px;
  text-align: right;
  color: var(--color-primary);
  font-weight: 500;
}

.cards__subtext {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

/* ===== RWD ===== */

@media screen and (max-width: 768px) {
  .cards__inner {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
}

@media screen and (max-width: 600px) {
  .cards__title {
    font-size: 20px;
  }

  .cards__list {
    padding: 16px;
  }

  .cards__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .cards__price {
    text-align: left;
    margin-top: 4px;
  }
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  padding: 10rem 0 2rem 0;
  color: #333;
  font-size: 14px;
  background: var(--color-secondary);
}

/* 4 欄彈性布局 */
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 2.5rem;

  width: 90vw;
  max-width: 1200px;
  margin: 0 auto;
}

/* 通用欄位設定 */
.footer__col {
  flex: 1 1 220px;
  display: flex;
  justify-content: center;
  align-items: start;
  text-align: start;
}

.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 0.6rem;
}

/* Logo */
.footer__logo img {
  width: 140px;
  height: auto;
}

/* 文字與連結樣式 */
.footer__col a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer__col a:hover {
  opacity: 0.6;
}

/* Social */
.footer__social ul {
  flex-direction: row; /* 橫向排列 */
}

/* Copyright */
.footer__copyright {
  margin-top: 120px;
  text-align: center;
  font-size: 0.8rem;
  color: #fff;
}

/* RWD */
@media (max-width: 900px) {
  .footer__inner {
    justify-content: center;
  }
}
