/* ================= 字體 ================= */
@font-face {
    font-family: "Urbanist";
    src: url("./source/txt/Urbanist-VariableFont_wght.ttf") format("truetype");
    font-weight: 100 900;
    /* font-style: italic; */
    font-display: swap;
}

@font-face {
    font-family: "Urbanist";
    src: url("./source/txt/Urbanist-Italic-VariableFont_wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: italic;     /* ⭐ 關鍵 */
    font-display: swap;
}


/* ================= Reset ================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Urbanist", system-ui, -apple-system, sans-serif;
    background: #fff;
    color: #0a2b8c;
}

/* ================= Toggle Icon ================= */

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;

  width: 60%;
  height: 100vh;

  background: #172F82;
  list-style: none;
  margin: 0;
  padding: 100px 24px 24px;

  display: flex;
  flex-direction: column;
  gap: 24px;

  /* ⭐ 關鍵：完全隱藏狀態 */
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;

  transition: transform 0.35s ease, opacity 0.25s ease;
  z-index: 9998;
}

/* 展開狀態 */
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* 選單文字 */
.mobile-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  font-family: 'Urbanist', sans-serif;
  line-height: 2;

}


.menu-toggle {
  position: relative;
  z-index: 9999;
}

.menu-toggle img {
  height: 24px;
}

/* 預設顯示 menu icon */
.icon-close {
  display: none;
}

/* 打開狀態切換 icon */
.menu-toggle.active .icon-menu {
  display: none;
}

.menu-toggle.active .icon-close {
  display: block;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu.open {
    display: block;
  }
}


/* ================= Header ================= */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.logo-row {
    display: flex;
    gap: 12px;
}

.logo {
    height: 32px;
}

.logo-card {
    width: 100%;
    max-width: 240px;
    height: 86px;

    border: 2px solid #243fa8;
    border-radius: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;

    overflow: hidden;   /* ⭐ 關鍵：不准圖片跑出去 */
}


.logo-card img {
    max-width: 90%;
    /* max-height: 60%; */
    width: auto;
    height: auto;
    object-fit: contain;   /* ⭐ 保險 */
}



.contact-link {
    font-weight: 600;
    text-decoration: none;
    color: #0a2b8c;
}

.menu-btn {
  display: none;

  width: 36px;
  height: 36px;

  background: #1e3aa8;
  border: none;
  border-radius: 2px;

  position: relative;
  cursor: pointer;
}

/* 三條線：用絕對定位做「真三等分」 */
.menu-btn span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  width: 22px;
  height: 2.0px;
  background: #fff;
  border-radius: 2px;
}

/* 上 / 中 / 下：等距 */
.menu-btn span:nth-child(1) {
  top: 10px;
}

.menu-btn span:nth-child(2) {
  top: 50%;
  transform: translate(-50%, -50%);
}

.menu-btn span:nth-child(3) {
  bottom: 12px;
}



/* ================= HERO ================= */
.hero {
    position: relative;
    padding-top: 48px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    left: 50%;
    top: 60%;

    transform: translate(-65%, -45%) scale(2);

    width: 100%;
    max-width: none;
    height: auto;

    z-index: 1;
    pointer-events: none;
}


.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero h1 {
    font-size: clamp(40px, 7vw, 88px);
    letter-spacing: 6px;
    font-weight: 600;
}

.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo img {
    width: 100%;
    max-width: 360px;   /* 手機視覺大小，之後可微調 */
    height: auto;       /* ⭐ 保比例 */
}


.subtitle {
  margin-top: 20px;
  text-align: center;
  font-size: 20px;

  letter-spacing: 0.15em;
}

.subtitle-line {
  display: block;          /* ⭐ 強制換行 = 三段 */
  line-height: 1.4;
}

.subtitle-line.light {
  font-weight: 300;        /* 細體 */
  font-style: italic;
}

.subtitle-line.Middle {
  font-weight: 500;        /* 細體 */
}

.subtitle-line.bold {
  font-weight: 700;        /* Bahrain 粗體 */
}


.partner-logos {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 32px 0 24px;
}

/* ================= CONTACT ================= */

.contact-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #172F82;
  position: relative;
  overflow: hidden;
}

.contact-content {
  /* max-width: 1280px; */
  margin: 0 auto;

  display: grid;
  align-items: stretch;

  position: relative;
  z-index: 1;

  padding: 0; /* ⭐ 關鍵 */
}


/* ---------- 標題區 ---------- */

.contact-header {
  margin-bottom: 48px;
}

.contact-title {
  font-size: 48px;
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1;
}

.contact-desc {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 42ch;
}

/* ---------- 表單（Mobile） ---------- */

.contact-form {
  /* display: flex; */
  flex-direction: column;
  gap: 16px;
}

.form-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
}

.contact-form input,
.contact-form textarea {
  border: none;
  padding: 10px 12px;
  font-size: 12px;
  font-family: inherit;
  border-radius: 2px;
}

.contact-form textarea {
  min-height: 80px;
  resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
}

/* ---------- Submit ---------- */

.form-submit {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.contact-submit {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.submit-text {
  font-size: 14px;
  font-weight: 700;
}


@media (max-width: 767px) {
    
      .contact-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 120px) clamp(48px, 7vw, 96px);
  font-family: 'Urbanist', sans-serif;
  color: #fff;
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {

  .contact-content {
    display: flex;
    flex-direction: column;
    padding: 0;              /* ⭐ 重點：容器不給 padding */
  }

  /* 圖片滿版 */
  .contact-image {
    display: block;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .contact-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }

  /* 表單自己有 padding */
  .contact-main {
    padding: clamp(48px, 8vw, 72px)
             clamp(64px, 6vw, 40px);
  }
}

}

@media (min-width: 768px) {

    .contact-content {
    display: grid;
    grid-template-columns: 0.5fr 1fr; /* ✔ iPad 視覺 */
    /* gap: clamp(32px, 4vw, 64px); */
    align-items: stretch;
  }

    .contact-image {
    min-width: 180px; /* 視覺高度，依你設計調 */
  }

.contact-image {
  position: relative;
  overflow: hidden;
  display: block;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* 不變形 */
  object-position: center;
  display: block;
}


.contact-main {
  padding: clamp(64px, 6vw, 120px)
           clamp(48px, 5vw, 96px);

  display: flex;
  flex-direction: column;
  justify-content: center;

  color: #fff;
}


  /* 標題橫排 */
  .contact-header {
    grid-template-columns: auto 1fr;
    align-items: end;
    gap: clamp(24px, 4vw, 64px);
    /* margin-bottom: 64px; */
  }

  .contact-title {
    font-size: clamp(72px, 8vw, 120px);
    line-height: 0.9;
    white-space: nowrap;
  }

  .contact-desc {
    font-size: 18px;
    max-width: 48ch;
  }

  /* 表單版型 */
  .contact-form {
    /* display: grid; */
    grid-template-columns: 1fr auto;
    column-gap: 64px;
    align-items: end;
  }

  .form-fields {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px 24px;
  }

  /* 第一排：Company / Name / Phone（各 2 欄 = 1/3） */
  .form-fields label:nth-child(1),
  .form-fields label:nth-child(2),
  .form-fields label:nth-child(3) {
    grid-column: span 2;
  }

  /* 第二排：左右對半（各 3 欄 = 1/2） */
  .form-fields label:nth-child(4),
  .form-fields label:nth-child(5) {
    grid-column: span 3;
  }

  /* 第三排：Message（整行） */
  .form-fields label:nth-child(6) {
    grid-column: 1 / -1;
  }

  /* Submit 放大 */
  .contact-submit {
    font-size: 0;
  }

  .submit-text {
    font-size: 36px;
    font-weight: 700;
  }

  .submit-icon {
    position: relative;
    width: 36px;
    height: 36px;
  }

  .submit-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 3px solid #fff;
    border-radius: 50%;
  }

  .submit-icon::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: translate(-50%, -50%) rotate(45deg);
  }
}

@media (min-width: 1024px) {

  .contact-image {
    min-height: 520px; /* 視覺高度，依你設計調 */
  }
}


  .contact-image {
    min-height: 520px; /* 視覺高度，依你設計調 */
  }
.contact-section {
  position: relative;
  overflow: hidden;
}

/* ⭐ 中心基準圓 */
.contact-section::before {
  content: "";
  position: absolute;

  /* ① 以 section 中心為基準 */
  left: 50%;
  top: 75%;

  /* ② 真正的圓 */
  width: clamp(1200px, 140vw, 2600px);
  height: clamp(1200px, 140vw, 2600px);
  border-radius: 50%;

  background: #2847B4;

  /* ③ 中心對齊 + 位移 + 放大 */
  transform:
    translate(-50%, -50%)
    translate(var(--circle-x, 0px), var(--circle-y, 300px))
    scale(var(--circle-scale, 1));

  pointer-events: none;
  z-index: 0;
}


/* ================= FOOTER ================= */

.footer-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #fff;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  font-family: 'Urbanist', sans-serif;
  text-align: center;
}

.footer-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #172F82;
}

.footer-info .label {
  opacity: 0.8;
}

.footer-info .value {
  font-weight: 600;
  color: #172F82;
  text-decoration: none;
}

.footer-info .divider {
  width: 1px;
  height: 14px;
  background: #172F82;
  opacity: 0.4;
}

.footer-copy {
  margin-top: 12px;
  font-size: 12px;
  color: #172F82;
  opacity: 0.8;

  display: flex;
  justify-content: center;
  gap: 24px;          /* 行內間距 */
  white-space: nowrap;
}

/* Mobile */
@media (max-width: 767px) {
  .footer-info {
    font-size: 8px;
  }

  .footer-copy {
    font-size: 11px;
  }

  .footer-content {
    padding: 12px 24px 28px;
  }
}

/* ================= 手機版 Only ================= */
@media (max-width: 600px) {

    .contact-link {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .partner-logos {
        flex-direction: column;
        gap: 16px;
    }

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

    .hero-bg {
        width: 140%;
    }

        .partner-logos {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin: 24px 0 32px;
    }
}


/* ================= Contact Info ================= */

.contact-info {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #fff;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.5;
}

.contact-icon {
  width: 12px;
  height: 12px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 4px; /* 與多行文字視覺對齊 */
}


.contact-text {
  opacity: 0.95;
}

@media (min-width: 768px) {

  .contact-info {
    margin-top: 40px;
    max-width: 520px; /* 不要太寬，視覺會更像 iPad */
  }

  .contact-info-item {
    font-size: 20px;
  }
}


/* =====================================================
   Mobile（手機）
   < 768px
   ===================================================== */
@media (max-width: 767px) {

  /* 在這裡寫手機專用樣式 */
    .footer-copy {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    white-space: normal;
    text-align: center;
  }

}



/* =====================================================
   Tablet（平板 / iPad / iPad Pro）
   768px ~ 1199px
   ===================================================== */
@media (min-width: 768px) and (max-width: 1199px) {

  /* 在這裡寫平板專用樣式 */

  .hero-logo img {
    width: 100%;
    max-width: 600px;   /* 手機視覺大小，之後可微調 */
    height: auto;       /* ⭐ 保比例 */
}

.subtitle {
  margin-top: 20px;
  text-align: center;
  font-size: 30px;

  letter-spacing: 0.15em;
}

.partner-logos {
  scale: 0.8;
}

.hero-bg {
    top: 75%;
}

.contact-section::before {
  top: 55%;
  left: 60%;
}

  .footer-copy {
    font-size: 8px;
  }

  
.contact-icon {
  width: 18px;
  height: 18px;
}


}


/* =====================================================
   Desktop（桌機，含 1920）
   >= 1200px
   ===================================================== */
@media (min-width: 1200px) {

  /* 在這裡寫桌機專用樣式 */

    .hero-logo img {
    width: 100%;
    max-width: 1600px;   /* 手機視覺大小，之後可微調 */
    height: auto;       /* ⭐ 保比例 */
}

.subtitle {
  margin-top: 40px;
  text-align: center;
  font-size: 70px;

  letter-spacing: 0.15em;
}

.partner-logos {
  scale: 1.6;
  margin: 120px 0 120px;
  gap: 48px;
}

.hero-bg {
    top: 85%;
    width: 60%;
}

.contact-title {
  font-size: 140px;
  font-weight: 800;
  margin: 0 0 24px;
  line-height: 1;
}

.contact-main {
  justify-content: start;

}

.contact-desc{
    font-size: 33px;
}

.contact-form label{
    font-size: 20px;
}

.contact-form input,
.contact-form textarea {
  border: none;
  padding: 24px 12px;
  font-size: 24px;
  font-family: inherit;
  border-radius: 2px;
}

.contact-info-item {
  font-size: 33px;
}

.contact-info {
  max-width: 1020px;
  font-weight: 500;

}

.contact-content {
   grid-template-columns: 0.4fr 1fr;
}

.contact-icon {
  width: clamp(28px, 1.2vw, 36px);
  height: clamp(28px, 1.2vw, 36px);
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 4px;
}


}
