/* ============================================================
   藝妍美學館 - 環境空間頁樣式 (environment.css)
   風格來源：.專案本案\風格\美容02\美甲-環境空間.html
   命名：遵守 .github\專案架構\css命名規則.md（BEM）
   Block 對應允許清單：wrap / section / page-header / about-section / gallery / info / cta-section / btn / footer
   ============================================================ */

/* ===== 核心變數 ===== */
:root {
  --cream: #faf5ef;
  --cream-2: #f3e9df;
  --rose: #c48a79;
  --rose-deep: #a86e5d;
  --gold: #b08d57;
  --ink: #4a3b33;
  --ink-soft: #7a6a60;
  --line: #e7d9cc;
}

/* ===== 全域重設 ===== */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: "Noto Serif TC", "PingFang TC", "Microsoft JhengHei", serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
}
img { display:block; max-width:100%; }
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.section { padding: 50px 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  letter-spacing: .3em;
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
}
h1, h2, h3 { font-weight: 700; letter-spacing: .03em; line-height: 1.35; }
.title { font-size: 28px; margin-bottom: 10px; color: var(--ink); }

/* ===== 頁首 ===== */
.page-header {
  background: var(--cream-2);
  border-bottom: 1px solid var(--line);
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.page-header__title {
  font-size: 30px;
  letter-spacing: .06em;
}
.page-header__sub {
  font-size: 16px;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* ===== 空間介紹（about-section Block） ===== */
.about-section__intro {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}
.about-section__intro p {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 2;
}

/* ===== 卡片列表（gallery Block，交錯排版） ===== */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.gallery__item {
  display: flex;
  gap: 36px;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 28px 32px;
  transition: box-shadow .25s;
}
.gallery__item:hover {
  box-shadow: 0 8px 28px rgba(74, 59, 51, 0.08);
}
.gallery__media {
  flex: 0 0 46%;
  aspect-ratio: 4 / 3;
  background: #d6ccc0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
.gallery__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery__body { flex: 1; }
.gallery__title {
  font-size: 20px;
  margin-bottom: 6px;
}
.gallery__text {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.9;
}
.gallery__note {
  margin-top: 10px;
  font-size: 14px;
  color: var(--rose-deep);
  font-weight: 500;
}
.gallery__item:nth-child(odd) { flex-direction: row; }
.gallery__item:nth-child(even) { flex-direction: row-reverse; }

/* ===== 地址資訊（info Block） ===== */
.info {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 32px 36px;
}
.info__title {
  font-size: 15px;
  color: var(--gold);
  letter-spacing: .1em;
  margin-bottom: 4px;
  font-weight: 600;
}
.info__text {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.6;
}
.info__text small {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ===== CTA（cta-section Block） ===== */
.cta-section {
  background: var(--ink);
  color: #f6ece4;
  padding: 44px 0;
  text-align: center;
}
.cta-section .title { color: #fff; }
.cta-section .btn {
  display: inline-block;
  background: var(--rose);
  color: #fff;
  text-decoration: none;
  padding: 12px 40px;
  border-radius: 999px;
  font-size: 15px;
  transition: background .2s;
  margin-top: 16px;
}
.cta-section .btn:hover { background: var(--rose-deep); }
.cta-section__contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 28px;
  margin-top: 14px;
  font-size: 14px;
  color: #e9d8cb;
}

/* ===== 響應式 ===== */
@media (max-width: 820px) {
  nav .wrap { padding: 0 24px; }
  .gallery__item { flex-direction: column !important; padding: 24px; gap: 20px; }
  .gallery__media { flex: 0 0 auto; width: 100%; aspect-ratio: 4 / 3; }
  .info { grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px !important; }
  nav .wrap { padding: 0 16px !important; }
  .page-header .wrap { padding: 0 16px !important; }
  .cta-section .wrap { padding: 0 16px !important; }

  .section { padding: 36px 0; }
  .page-header { padding: 24px 0 20px; }
  .page-header__title { font-size: 24px; }
  .title { font-size: 22px; }
  .about-section__intro p { font-size: 15px; }
  .gallery__item { padding: 18px 16px; gap: 16px; }
  .gallery__title { font-size: 18px; }
  .gallery__text { font-size: 14px; }
  .info { grid-template-columns: 1fr; gap: 16px; padding: 24px 20px; }
  .cta-section { padding: 32px 0; }
  .cta-section .btn { padding: 10px 32px; font-size: 14px; }
  .cta-section__contact { font-size: 13px; gap: 10px 16px; }
  footer { font-size: 11px; padding: 14px 12px; }
}

@media (max-width: 400px) {
  .wrap { padding: 0 12px !important; }
  nav .wrap { padding: 0 12px !important; }
  .page-header .wrap { padding: 0 12px !important; }
  .cta-section .wrap { padding: 0 12px !important; }
  .page-header__title { font-size: 20px; }
  .title { font-size: 18px; }
}
