﻿/* 佳漢首頁 — 中文字體與排版覆寫（不修改 new/style.css） */

body {
  font-family: "Noto Sans TC", "Roboto", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.banner-title {
  font-family: "Montserrat", "Noto Sans TC", sans-serif;
}

.banner-title {
  line-height: 1.2;
  word-break: keep-all;
}

.main-logo a {
  font-family: "Montserrat", "Noto Sans TC", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  max-width: 7rem;
  word-break: keep-all;
}

.description p,
.post-content p,
.services-item p {
  line-height: 1.85;
}

/* 首頁 — 青綠色主題（僅 body.page-home） */
.page-home {
  --accent-color: #0D9488;
  --accent-color-rgb: 13, 148, 136;
  --dark-color: #134E4A;
  --grey-color: #CCFBF1;
  --surface-color: #F0FDFA;
  --swiper-theme-color: #0D9488;
  --bs-primary: #0D9488;
  --bs-primary-rgb: 13, 148, 136;
  --bs-dark: #134E4A;
  --bs-light: #F0FDFA;
  background-color: var(--surface-color);
}

.page-home #featured-works .post-grid .post-content {
  background: var(--surface-color);
}

.page-home #featured-works .post-item figure a.image-hvr-effect {
  background-color: #99F6E4;
}

.page-home #portfolio .portfolio-item .image-link {
  background-color: var(--dark-color);
}

.page-home #services .services-item {
  background: var(--surface-color);
}

.page-home #footer-bottom {
  border-top-color: rgba(13, 148, 136, 0.2);
}

.page-home .btn.btn-accent:hover {
  background-color: #0F766E;
}

/* 作品案例區 — 統一圖片比例，避免跑版（首頁 + 作品列表頁） */
#featured-works .post-grid > .row,
#works-list .post-grid > .row,
#case-related .post-grid > .row {
  --bs-gutter-x: 1.5rem;
  align-items: stretch;
}

#featured-works .post-grid > .row > [class*="col-"],
#works-list .post-grid > .row > [class*="col-"],
#case-related .post-grid > .row > [class*="col-"] {
  display: flex;
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  padding-right: calc(var(--bs-gutter-x) * 0.5);
}

#featured-works .post-item,
#works-list .post-item,
#case-related .post-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin: 0;
}

#featured-works .post-item figure,
#works-list .post-item figure,
#case-related .post-item figure {
  margin: 0;
  width: 100%;
  flex-shrink: 0;
}

#featured-works .post-item figure a.image-hvr-effect,
#works-list .post-item figure a.image-hvr-effect,
#case-related .post-item figure a.image-hvr-effect {
  display: block !important;
  width: 100%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: #e8e8e6;
}

#featured-works .post-item figure a.image-hvr-effect img.post-image,
#works-list .post-item figure a.image-hvr-effect img.post-image,
#case-related .post-item figure a.image-hvr-effect img.post-image {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.06);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#featured-works .post-item figure a.image-hvr-effect:hover img.post-image,
#works-list .post-item figure a.image-hvr-effect:hover img.post-image,
#case-related .post-item figure a.image-hvr-effect:hover img.post-image {
  transform: scale(1);
}

#featured-works .post-grid .post-content,
#works-list .post-grid .post-content,
#case-related .post-grid .post-content {
  width: 100% !important;
  margin: 0 !important;
  margin-bottom: 0 !important;
  padding: 1.75rem 1.5rem !important;
  box-sizing: border-box;
  flex: 1;
  background: #fff;
}

#featured-works .post-item .post-title,
#works-list .post-item .post-title,
#case-related .post-item .post-title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

#featured-works .post-item .meta-date,
#works-list .post-item .meta-date,
#case-related .post-item .meta-date {
  padding-bottom: 0.75rem;
}

#featured-works .post-item p,
#works-list .post-item p,
#case-related .post-item p {
  margin: 0;
  line-height: 1.75;
}

#featured-works .post-title a,
#works-list .post-title a,
#case-related .post-title a {
  color: #111;
  text-decoration: none;
}

#featured-works .post-title a:hover,
#works-list .post-title a:hover,
#case-related .post-title a:hover {
  color: var(--accent-color, #c5a992);
}

@media (max-width: 767.98px) {
  #featured-works .post-grid .post-content,
  #works-list .post-grid .post-content,
  #case-related .post-grid .post-content {
    margin: 0 !important;
  }
}

/* 首頁空間選輯 — 圖片 hover 縮放 */
#portfolio .portfolio-item .image-link {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background-color: #1a1a1a;
}

#portfolio .portfolio-item .image-link img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
  transform: scale(1);
  opacity: 1;
  transition:
    opacity 0.4s ease,
    transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#portfolio .portfolio-item.is-shuffling .image-link img {
  opacity: 0;
  transform: scale(1.03);
}

#portfolio .portfolio-item .image-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.35s ease;
  pointer-events: none;
}

#portfolio .portfolio-item .image-link:hover img,
#portfolio .portfolio-item .image-link:focus-visible img {
  transform: scale(1.08);
}

#portfolio .portfolio-item .image-link:hover::after,
#portfolio .portfolio-item .image-link:focus-visible::after {
  background: rgba(0, 0, 0, 0.15);
}

#portfolio .portfolio-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.5rem 0;
}

#portfolio .portfolio-shuffle-btn {
  flex: 0 0 auto;
  font-weight: 600;
}

#portfolio .portfolio-shuffle-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 575.98px) {
  #portfolio .portfolio-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  #portfolio .portfolio-shuffle-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #portfolio .portfolio-item .image-link img,
  #portfolio .portfolio-item .image-link::after {
    transition: none;
  }

  #portfolio .portfolio-item.is-shuffling .image-link img {
    opacity: 1;
    transform: none;
  }
}

/* 首頁五大服務 — 入場、光暈與 hover 動畫 */
#services .row > .col {
  display: flex;
}

#services .services-item {
  position: relative;
  width: 100%;
  margin-top: 0;
  margin-right: 0;
  padding: 2.25rem 1.75rem 1.75rem;
  background: #fff;
  border: none;
  border-radius: 0.35rem;
  overflow: visible;
  transition:
    box-shadow 0.4s ease,
    transform 0.4s ease;
}

#services .services-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    circle 200px at var(--spotlight-x, 50%) var(--spotlight-y, 0%),
    rgba(var(--accent-color-rgb, 197, 169, 146), 0.22),
    transparent 72%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

#services .services-item:hover,
#services .services-item:focus-within {
  transform: translateY(-10px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.1);
}

#services .services-item.is-hover-spotlight::after {
  opacity: 1;
}

#services .services-item .number {
  z-index: 3;
  pointer-events: none;
  transition: color 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

#services .services-item:hover .number,
#services .services-item:focus-within .number {
  color: rgba(var(--accent-color-rgb, 197, 169, 146), 0.42);
  transform: scale(1.06) translateY(-6px);
}

#services .services-item h3 {
  position: relative;
  z-index: 2;
  transition: color 0.35s ease, transform 0.35s ease;
}

#services .services-item:hover h3,
#services .services-item:focus-within h3 {
  color: var(--accent-color, #c5a992);
  transform: translateX(5px);
}

#services .services-item p {
  position: relative;
  z-index: 2;
  transition: color 0.35s ease;
}

#services .services-item:hover p,
#services .services-item:focus-within p {
  color: #444;
}

@media (prefers-reduced-motion: reduce) {
  #services .services-item {
    transition: box-shadow 0.2s ease;
  }

  #services .services-item::after,
  #services .services-item .number,
  #services .services-item h3 {
    transition: none;
  }

  #services .services-item:hover {
    transform: none;
  }
}

/* wow.js 滾動動畫 */
.wow {
  visibility: hidden;
}

.animated {
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .wow {
    visibility: visible;
  }
}

/* 首頁 Hero 輪播 — 滿版視窗高度 */
#intro {
  min-height: 100vh;
  min-height: 100svh;
}

#intro .main-slider,
#intro .main-slider .slick-list,
#intro .main-slider .slick-track,
#intro .main-slider .slick-slide,
#intro .main-slider .slider-item {
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
}

#intro .main-slider .slider-item.jarallax {
  overflow: hidden;
}

#intro .main-slider .slider-item .jarallax-img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

/* ===== 關於佳漢頁 ===== */

/* 內頁橫幅 */
.page-hero {
  position: relative;
  min-height: 42vh;
  min-height: 42svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.35) 55%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.page-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 8rem;
  padding-bottom: 3.5rem;
}

.page-hero__title {
  font-family: "Montserrat", "Noto Sans TC", sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  color: #fff;
  margin: 0;
  line-height: 1.15;
}

.page-hero .breadcrumb {
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.6);
  --bs-breadcrumb-item-active-color: #fff;
  font-size: 0.9rem;
}

.page-hero .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.page-hero .breadcrumb-item a:hover {
  color: var(--accent-color, #c5a992);
}

/* 組織架構頁橫幅 — 較高比例、避免底部裁切 */
.page-hero--organization {
  min-height: 52vh;
  min-height: 52svh;
}

.page-hero--organization .page-hero__bg {
  background-position: center center;
  background-size: cover;
}

/* 品牌故事 — 雙圖拼貼 */
.about-gallery__img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.about-gallery__img--tall {
  aspect-ratio: 4 / 3;
  margin-bottom: 0;
}

.about-gallery__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5rem;
  padding: 1rem 1.25rem;
  background: var(--accent-color, #c5a992);
  text-align: center;
}

.about-gallery__badge p {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.about-check {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

.about-check .icon {
  color: var(--accent-color, #c5a992);
}

/* 公司沿革 — 時間軸 */
.timeline {
  position: relative;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 0 0 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.55rem;
  width: 2px;
  background: rgba(0, 0, 0, 0.12);
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.25rem;
  align-items: start;
  padding-bottom: 2.5rem;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -1.45rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-color, #c5a992);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--accent-color, #c5a992);
}

.timeline__year {
  font-family: "Montserrat", "Noto Sans TC", sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--accent-color, #c5a992);
  line-height: 1.2;
}

.timeline__content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline__content p {
  margin: 0;
  color: #666;
  line-height: 1.75;
}

/* 核心優勢 */
#about-values .about-value-item {
  height: 100%;
  margin: 0;
}

/* 聯絡 CTA */
.about-cta {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.about-cta__image {
  width: 100%;
  height: 100%;
  min-height: 20rem;
  object-fit: cover;
  display: block;
}

.about-cta__content {
  padding: 3.5rem 2.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f7f7f5;
}

@media (max-width: 767.98px) {
  .page-hero {
    min-height: 36vh;
    min-height: 36svh;
  }

  .page-hero--organization {
    min-height: 44vh;
    min-height: 44svh;
  }

  .page-hero--organization .page-hero__bg {
    background-position: center center;
  }

  .page-hero__content {
    padding-top: 7rem;
    padding-bottom: 2.5rem;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline__item {
    grid-template-columns: 4rem 1fr;
    gap: 0.75rem;
  }

  .timeline__year {
    font-size: 1.1rem;
  }

  .about-cta__content {
    padding: 2.5rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero__bg {
    transform: none !important;
  }
}

/* ===== 組織架構頁 ===== */

#org-chart-section {
  background: #f5f5f5;
}

.org-chart-image {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.org-chart-image__img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* 據點說明卡 */
#org-offices .org-office-card {
  height: 100%;
  margin: 0;
}

.org-office-card__dept {
  color: var(--accent-color, #c5a992);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem !important;
}

.org-cta__back-link {
  color: #666;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.org-cta__back-link:hover {
  color: var(--accent-color, #c5a992);
}

@media (max-width: 767.98px) {
  .org-chart-image {
    padding: 0 0.25rem;
  }

  .org-chart-image__img {
    border-radius: 0.35rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  }
}

/* ===== 獎項／證照展示 ===== */

.awards-grid__item,
.certificates-grid__item {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 1.25rem;
  background: #f8f8f8;
  border-radius: 0.5rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.awards-grid__media {
  position: relative;
  overflow: hidden;
  border-radius: 0.35rem;
  background: #f0f0f0;
}

.awards-grid__media img,
.awards-grid__item > img,
.certificates-grid__item img {
  width: 100%;
  height: auto;
  max-height: 18rem;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transform: scale(1);
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.awards-grid__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.35s ease;
  pointer-events: none;
}

.awards-grid__media:hover img,
.awards-grid__media:focus-within img {
  transform: scale(1.08);
}

.awards-grid__media:hover::after,
.awards-grid__media:focus-within::after {
  background: rgba(0, 0, 0, 0.15);
}

.certificates-grid__item img {
  max-height: 22rem;
}

.awards-grid__caption,
.certificates-grid__caption {
  margin-top: 1rem;
  margin-bottom: 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  line-height: 1.5;
}

#about-awards {
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .awards-grid__media img,
  .awards-grid__media::after {
    transition: none;
  }

  .awards-grid__media:hover img,
  .awards-grid__media:focus-within img {
    transform: none;
  }
}

#org-certificates {
  background: #f5f5f5;
}

@media (max-width: 767.98px) {
  .awards-grid__item img {
    max-height: 14rem;
  }

  .certificates-grid__item img {
    max-height: 16rem;
  }
}

/* ===== 作品案例頁 ===== */

#works-list {
  background: #f7f7f5;
}

#works-list .works-tabs {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  gap: 0.5rem;
}

#works-list .works-tabs .nav-link {
  color: #666;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.25rem;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

#works-list .works-tabs .nav-link:hover {
  color: var(--accent-color, #c5a992);
}

#works-list .works-tabs .nav-link.active {
  color: var(--accent-color, #c5a992);
  border-bottom-color: var(--accent-color, #c5a992);
  background: transparent;
}

#works-list .post-item figure a.image-hvr-effect {
  background-color: #e8e8e6;
}

#works-list .works-brand-filter {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 0.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

#works-list .works-brand-filter__btn {
  flex: 0 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #555;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

#works-list .works-brand-filter__btn:hover {
  color: var(--accent-color, #c5a992);
  border-color: var(--accent-color, #c5a992);
}

#works-list .works-brand-filter__btn.active {
  color: #fff;
  background: var(--accent-color, #c5a992);
  border-color: var(--accent-color, #c5a992);
}

#works-list .works-brand-sections {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

#works-list .works-brand-section__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(197, 169, 146, 0.35);
}

#works-list .works-brand-section__count {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-color, #c5a992);
  margin-left: 0.35rem;
}

#works-list .works-brand-section.is-hidden {
  display: none;
}

/* ===== 文章頁 ===== */

#article-content {
  background: #fff;
}

.article-body {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.article-meta {
  color: var(--accent-color, #c5a992);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.article-hero-image {
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 0.35rem;
  aspect-ratio: 16 / 9;
  background: #f0f0ee;
}

.article-hero-image__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-body__content p {
  line-height: 1.85;
  color: #444;
  margin-bottom: 1.25rem;
}

.article-body__content p:last-child {
  margin-bottom: 0;
}

.article-body__footer {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

@media (max-width: 767.98px) {
  #works-list .works-tabs .nav-link {
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
  }

  .article-body__footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
  }
}

/* ===== 案例詳情頁 ===== */

#case-detail {
  background: #fff;
}

.case-detail-meta {
  color: var(--accent-color, #c5a992);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}

.case-detail-lead {
  line-height: 1.85;
  color: #444;
  margin-bottom: 1.25rem;
}

.case-detail-hero-image {
  overflow: hidden;
  border-radius: 0.35rem;
  aspect-ratio: 4 / 3;
  background: #f0f0ee;
}

.case-detail-hero-image__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-detail-section {
  margin-bottom: 3rem;
}

.case-detail-section:last-of-type {
  margin-bottom: 0;
}

.case-detail-gallery__link {
  display: block;
  overflow: hidden;
  border-radius: 0.35rem;
  aspect-ratio: 4 / 3;
  background: #e8e8e6;
}

.case-detail-gallery__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.case-detail-gallery__link:hover img {
  transform: scale(1.05);
}

.case-detail-footer {
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

#case-related .post-item figure a.image-hvr-effect {
  background-color: #e8e8e6;
}

/* ===== 聯絡我們頁 ===== */

#contact-page {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(197, 169, 146, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 100%, rgba(197, 169, 146, 0.14) 0%, transparent 50%),
    linear-gradient(165deg, #fdfcfa 0%, #f5f0ea 38%, #ebe4d9 72%, #f8f5f1 100%);
}

#contact-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.35) 0%,
    transparent 28%,
    transparent 72%,
    rgba(255, 255, 255, 0.25) 100%
  );
  pointer-events: none;
}

#contact-page > .container {
  position: relative;
  z-index: 1;
}

.contact-form {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 0.5rem;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.07),
    0 0 0 1px rgba(197, 169, 146, 0.12);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.contact-form__inner {
  padding: 1.5rem 1.75rem 1.5rem;
}

.contact-form__header {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-form__eyebrow {
  margin: 0 0 0.35rem;
  font-family: "Montserrat", "Noto Sans TC", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-color, #c5a992);
}

.contact-form__title {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
}

.contact-form__desc {
  margin: 0;
  color: #666;
  line-height: 1.6;
  font-size: 0.9rem;
}

.contact-form__field {
  position: relative;
}

.contact-form__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #444;
}

.contact-form__required {
  color: var(--accent-color, #c5a992);
}

.contact-form__control {
  display: block;
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #222;
  background: #faf9f7;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.3rem;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    transform 0.2s ease;
}

.contact-form__control::placeholder {
  color: #aaa;
}

.contact-form__control:hover {
  border-color: rgba(197, 169, 146, 0.45);
  background: #fff;
}

.contact-form__control:focus {
  outline: none;
  border-color: var(--accent-color, #c5a992);
  background: #fff;
  box-shadow:
    0 0 0 3px rgba(197, 169, 146, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

.contact-form__control--select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23c5a992' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1rem;
  cursor: pointer;
}

.contact-form__control--textarea {
  resize: none;
  min-height: 4.5rem;
}

.contact-form__submit {
  padding-top: 0;
}

.contact-form__btn {
  min-width: 12rem;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 24px rgba(197, 169, 146, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(197, 169, 146, 0.42);
}

.contact-form__note {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: #888;
  line-height: 1.6;
}

.contact-form__body {
  display: flex;
  flex-direction: column;
}

.contact-form__message-row {
  margin-top: 0.75rem;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 992px) {
  #contact-page .contact-layout__col--left .contact-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  #contact-page .contact-form__inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  #contact-page .contact-form__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  #contact-page .contact-form__message-row {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  #contact-page .contact-form__message-row .contact-form__field {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  #contact-page .contact-form__control--textarea {
    flex: 1;
    min-height: 4rem;
  }

  #contact-page .contact-form__submit-row {
    flex-shrink: 0;
    padding-top: 0.75rem;
  }
}

.contact-office-card {
  padding: 1.75rem 1.5rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 0.5rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-office-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.contact-office-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(197, 169, 146, 0.35);
}

.contact-office-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-office-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  color: #555;
  line-height: 1.6;
  font-size: 0.95rem;
}

.contact-office-card__list li:last-child {
  margin-bottom: 0;
}

.contact-office-card__list .icon {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--accent-color, #c5a992);
}

.contact-office-card__list a {
  color: #555;
  text-decoration: none;
}

.contact-office-card__list a:hover {
  color: var(--accent-color, #c5a992);
}

.contact-map__embed {
  display: block;
  width: 100%;
  height: 14rem;
  border: 0;
  border-radius: 0.5rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
  .contact-map__embed {
    height: 16rem;
  }
}

@media (max-width: 767.98px) {
  .contact-form__inner {
    padding: 1.25rem 1.15rem 1.15rem;
  }

  .contact-form__title {
    font-size: 1.4rem;
  }

  .contact-form__btn {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-form__control:focus,
  .contact-form__btn:hover,
  .contact-office-card:hover {
    transform: none;
  }
}

.nav__block-item a[href^="tel:"],
.nav__block-item a[href^="https://maps.google.com"] {
  color: inherit;
  text-decoration: none;
}

.nav__block-item a[href^="tel:"]:hover,
.nav__block-item a[href^="https://maps.google.com"]:hover {
  text-decoration: underline;
}

#footer .menu-item a[href^="tel:"],
#footer .menu-item a[href^="https://maps.google.com"],
.contact-office-card__list a[href^="tel:"],
.contact-office-card__list a[href^="https://maps.google.com"],
#contact .iconbox .detail a {
  color: inherit;
  text-decoration: none;
}

#footer .menu-item a[href^="tel:"]:hover,
#footer .menu-item a[href^="https://maps.google.com"]:hover,
.contact-office-card__list a[href^="tel:"]:hover,
.contact-office-card__list a[href^="https://maps.google.com"]:hover,
#contact .iconbox .detail a:hover {
  text-decoration: underline;
}

.site-footer a[href^="tel:"],
.site-footer a[href^="https://maps.google.com"],
.site-footer a[href^="mailto:"] {
  color: inherit;
  text-decoration: none;
}

.site-footer a[href^="tel:"]:hover,
.site-footer a[href^="https://maps.google.com"]:hover,
.site-footer a[href^="mailto:"]:hover {
  text-decoration: underline;
}
