/* ===== 全局重置 ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: #0b0f19 !important;
  color: #e2e8f0;
  line-height: 1.6;
}

/* ===== 1. 頂部導覽列 Navbar ===== */
.navbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 1.25rem 8% !important;
  background-color: #080d1a !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff !important;
  letter-spacing: -0.5px;
}

.logo span {
  color: #38bdf8 !important;
}

.nav-menu {
  display: flex !important;
  align-items: center !important;
  gap: 2.25rem !important;
}

.nav-menu a,
.nav-menu a:visited {
  color: #94a3b8 !important;
  text-decoration: none !important;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease, border-color 0.2s ease;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #38bdf8 !important;
  border-bottom-color: #38bdf8 !important;
}

.btn-primary {
  background: #0284c7 !important;
  color: #ffffff !important;
  padding: 0.7rem 1.4rem !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  display: inline-block;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #0369a1 !important;
}

/* ===== 2. 主內容區塊 (對齊首頁面寬) ===== */
.subpage-section {
  padding: 4rem 8% 6rem;
  width: 100%;
  background-color: #0b0f19;
}

.section-header {
  margin-bottom: 3rem;
  text-align: left;
}

.section-header h2 {
  font-size: 2.2rem;
  color: #ffffff !important;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.lead-text {
  color: #94a3b8 !important;
  font-size: 1.05rem;
  max-width: 900px;
  line-height: 1.7;
}

/* ===== 3. 2x2 矩陣與卡片 (50% : 50% 圖文占比) ===== */
.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
}

.split-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.2rem;
  background-color: #111827;
  border: 1px solid #1e293b;
  border-radius: 8px;
  transition: border-color 0.2s, transform 0.2s;
  overflow: hidden;
}

.split-card:hover {
  border-color: #38bdf8;
  transform: translateY(-3px);
}

/* 左側文字區域：占據 50% 寬度 */
.card-text {
  flex: 0 0 50%;
  max-width: 50%;
  min-width: 0;
}

.card-title {
  color: #38bdf8 !important;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  display: inline-block;
  border-bottom: 2px solid #0284c7;
  padding-bottom: 0.3rem;
}

.card-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-text li {
  color: #cbd5e1 !important;
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.8rem;
}

.card-text li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #38bdf8;
  font-weight: bold;
  font-size: 1.2rem;
}

/* 右側媒體區域：占據 50% 寬度，依 16:9 自動縮放高度 */
.card-media {
  flex: 0 0 50%;
  max-width: 50%;
  aspect-ratio: 16 / 9;
  height: auto;
  background-color: #070a12;
  border: 1px solid #1e293b;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-media img,
.card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== 4. 響應式佈局 (Mobile / Tablet) ===== */
@media (max-width: 1024px) {
  .grid-2x2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .split-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .card-text,
  .card-media {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }
}

/* ===== 5. Footer (AltusFoils 1:1 Style) ===== */
.site-footer {
  background-color: #000000;
  color: #a1a1aa;
  padding: 4rem 8% 2.5rem;
  font-size: 0.88rem;
  border-top: 1px solid #18181b;
  margin-top: 4rem;
  width: 100%;
}

.footer-top-text {
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid #27272a;
  color: #e4e4e7;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-top-text u {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 3rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
}

.footer-col a {
  display: block;
  color: #a1a1aa;
  text-decoration: none;
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-col a.blue-link {
  color: #38bdf8;
  margin-top: 1rem;
}

.footer-col p {
  color: #a1a1aa;
  margin-bottom: 0.4rem;
}

.footer-col p.sub-text {
  color: #71717a;
  font-size: 0.82rem;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.btn-subscribe {
  background-color: #ffffff;
  color: #000000;
  border: none;
  padding: 0.6rem 1.6rem;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 0.2s;
}

.btn-subscribe:hover {
  background-color: #e4e4e7;
}

.footer-bottom-bar {
  border-top: 1px solid #27272a;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #71717a;
  letter-spacing: 0.03em;
}

.legal-links {
  display: flex;
  gap: 1.5rem;
}

.legal-links a {
  color: #71717a;
  text-decoration: none;
}

.legal-links a:hover {
  color: #a1a1aa;
}

/* Footer RWD 手機版切換 */
@media (max-width: 768px) {
  .footer-main-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .footer-main-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-bar {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

/* ===== Contact Us 專用頁面樣式 ===== */
.contact-section {
  padding: 4rem 8% 6rem;
  width: 100%;
  background-color: #000000;
}

.contact-header {
  margin-bottom: 3.5rem;
  border-bottom: 1px solid #18181b;
  padding-bottom: 2.5rem;
}

.contact-header .sub-title {
  color: #71717a;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.5rem;
}

.contact-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 0.8rem;
}

.contact-header .lead-text {
  color: #a1a1aa;
  font-size: 1rem;
  max-width: 850px;
  line-height: 1.6;
}

/* 雙欄網格布局 */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}

.col-title {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

/* 左側：資訊卡片 (Dark Cards) */
.info-card {
  background-color: #070a12;
  border: 1px solid #18181b;
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.icon-box {
  background-color: #111827;
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  border: 1px solid #1e293b;
}

.info-content h4 {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.2rem;
}

.info-content .sub-desc {
  color: #71717a;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}

.link-text {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-row {
  margin-top: 0.6rem;
  font-size: 0.88rem;
}

.contact-row .label {
  color: #a1a1aa;
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
}

.phone-link {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 600;
  margin-right: 0.8rem;
}

.whatsapp-badge {
  color: #22c55e;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.address-text {
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.5;
}

.hours-text {
  color: #cbd5e1;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.hours-text strong {
  color: #ffffff;
}

/* 右側：表單卡片 */
.contact-form {
  background-color: #070a12;
  border: 1px solid #18181b;
  border-radius: 6px;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background-color: #000000;
  border: 1px solid #27272a;
  border-radius: 4px;
  padding: 0.8rem 1rem;
  color: #ffffff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #38bdf8;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #52525b;
}

.form-group select option {
  background-color: #070a12;
  color: #ffffff;
}

.btn-submit {
  width: 100%;
  background-color: #ffffff;
  color: #000000;
  border: none;
  padding: 0.9rem;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-submit:hover {
  background-color: #e4e4e7;
}

/* 響應式手機版適應 */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}


.footer-col a.dashboard-link {
  color: #94a3b8;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  display: block;
}

.footer-col a.dashboard-link:hover {
  color: #ffffff;
}

/* 圖片與標籤容器 */
.image-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
}

/* 圖片本體圓角與寬度設定 */
.image-box img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

/* 圖片下方標籤樣式 */
.image-caption {
  font-size: 0.82rem;
  color: #94a3b8; /* 次要文字淡灰色 */
  margin-top: 0.5rem;
  text-align: center;
  line-height: 1.4;
  font-style: italic; /* 斜體文字展現說明質感 */
}
