
/* PENNY BEAUTY V1.7.2 revised — full-width responsive hero */
:root{
  --v172-ink:#2b211c;
  --v172-accent:#9b725e;
  --v172-soft:#f7eee8;
  --v172-line:#ead8ce;
}
body{font-size:16px}
.wrap{width:min(1240px,calc(100% - 48px))}
header .wrap{max-width:1240px}

/* HERO */
.hero-full{
  position:relative;
  width:100%;
  min-height:680px;
  overflow:hidden;
  background:#efe3db;
}
.hero-bg{
  position:absolute;
  inset:0;
  display:block;
}
.hero-bg img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  display:block;
}
.hero-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,
      rgba(251,247,244,.96) 0%,
      rgba(251,247,244,.88) 22%,
      rgba(251,247,244,.52) 41%,
      rgba(251,247,244,.12) 58%,
      rgba(251,247,244,0) 72%);
}
.hero-content{
  position:relative;
  z-index:2;
  min-height:680px;
  display:flex;
  align-items:center;
}
.hero-copy{
  width:min(560px,46vw);
  padding:70px 0;
}
.hero-copy h1{
  font-size:clamp(52px,4.5vw,76px);
  line-height:1.1;
  letter-spacing:-.025em;
  margin:16px 0 22px;
  color:var(--v172-ink);
}
.hero-copy>p{
  font-size:18px;
  line-height:1.9;
  max-width:520px;
  color:#6f5d53;
}
.hero-copy .actions{
  margin-top:30px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.hero-copy .hero-tags{
  margin-top:26px;
  display:flex;
  gap:9px;
  flex-wrap:wrap;
}
.hero-copy .hero-tags span{
  background:rgba(255,255,255,.76);
  border:1px solid rgba(155,114,94,.28);
  backdrop-filter:blur(4px);
}

/* BODY VISUAL SCALE */
.trust-strip{border-top:1px solid var(--v172-line);border-bottom:1px solid var(--v172-line)}
.section{padding:92px 0}
.section-head{margin-bottom:34px}
.section-head h2{font-size:clamp(34px,3vw,48px)}
.service-grid{gap:18px}
.service-card{
  min-height:235px;
  padding:28px;
  border-radius:18px;
  transition:.25s ease;
}
.service-card:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 40px rgba(79,52,39,.08);
}
.service-card h3{font-size:24px;margin-top:32px}
.about{
  grid-template-columns:minmax(340px,.8fr) minmax(440px,1.2fr);
  gap:72px;
  align-items:center;
}
.about-photo{
  height:540px;
  border-radius:24px;
  overflow:hidden;
}
.about-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 35%;
}
.works{grid-template-columns:repeat(4,1fr);gap:18px}
.works article{border-radius:18px;overflow:hidden;background:#fff}
.works img,.workph{height:280px;object-fit:cover;width:100%}
.article-grid.home-articles{grid-template-columns:repeat(3,1fr);gap:18px}
.article-card{min-height:220px;padding:28px}
.location-grid{gap:18px}
.location-grid article{padding:28px;border-radius:18px}
.cta{padding:76px 0}
.cta h2{font-size:44px}

/* TABLET */
@media(max-width:1000px){
  .hero-full,
  .hero-content{min-height:620px}
  .hero-overlay{
    background:linear-gradient(90deg,
      rgba(251,247,244,.95) 0%,
      rgba(251,247,244,.83) 34%,
      rgba(251,247,244,.26) 58%,
      rgba(251,247,244,0) 76%);
  }
  .hero-copy{
    width:min(500px,52vw);
  }
  .hero-copy h1{
    font-size:52px;
  }
}

/* MOBILE: image first, text below; avoids overlaying text on the face */
@media(max-width:700px){
  .wrap{width:calc(100% - 28px)}
  .hero-full{
    min-height:0;
    display:flex;
    flex-direction:column;
    background:#fbf5f1;
  }
  .hero-bg{
    position:relative;
    inset:auto;
    width:100%;
    height:auto;
    display:block;
    order:1;
  }
  .hero-bg img{
    width:100%;
    height:auto;
    aspect-ratio:4/5.15;
    object-fit:cover;
    object-position:center 34%;
    display:block;
  }
  .hero-overlay{display:none}
  .hero-content{
    order:2;
    min-height:0;
    width:100%;
    padding:0;
  }
  .hero-copy{
    width:100%;
    padding:30px 0 38px;
  }
  .hero-copy h1{
    font-size:38px;
    line-height:1.16;
    margin:12px 0 16px;
  }
  .hero-copy>p{
    font-size:15px;
    line-height:1.8;
  }
  .hero-copy .actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:9px;
    margin-top:22px;
  }
  .hero-copy .actions a{
    text-align:center;
    padding-left:8px;
    padding-right:8px;
  }
  .hero-copy .hero-tags{
    display:flex;
    flex-wrap:nowrap;
    overflow-x:auto;
    gap:7px;
    padding-bottom:4px;
    scrollbar-width:none;
  }
  .hero-copy .hero-tags::-webkit-scrollbar{display:none}
  .hero-copy .hero-tags span{white-space:nowrap}

  .section{padding:56px 0}
  .section-head h2{font-size:32px}
  .service-grid{grid-template-columns:1fr}
  .service-card{min-height:190px}
  .service-card h3{margin-top:22px}
  .about{grid-template-columns:1fr;gap:34px}
  .about-photo{height:auto;aspect-ratio:4/5.1}
  .works{grid-template-columns:repeat(2,1fr);gap:10px}
  .works img,.workph{height:auto;aspect-ratio:1/1.12}
  .article-grid.home-articles{grid-template-columns:1fr}
  .cta h2{font-size:34px}
}


/* V1.7.2 mobile spacing fix
   手機版內容左右留白，避免標題、按鈕、標籤貼齊螢幕邊緣 */
@media (max-width:700px){
  .hero-content{
    box-sizing:border-box;
    padding-left:20px;
    padding-right:20px;
  }

  .hero-content.wrap{
    width:100%;
    max-width:none;
  }

  .hero-copy{
    box-sizing:border-box;
    padding-top:32px;
    padding-bottom:40px;
  }

  .hero-copy h1,
  .hero-copy > p,
  .hero-copy .kicker{
    max-width:100%;
  }

  .hero-copy h1{
    font-size:clamp(38px,10.5vw,48px);
    line-height:1.15;
    letter-spacing:-0.035em;
    overflow-wrap:break-word;
  }

  .hero-copy .actions{
    width:100%;
    gap:10px;
  }

  .hero-copy .actions a{
    min-width:0;
    box-sizing:border-box;
    font-size:16px;
  }

  .hero-copy .hero-tags{
    width:100%;
    box-sizing:border-box;
    padding-right:2px;
  }
}

@media (max-width:390px){
  .hero-content{
    padding-left:18px;
    padding-right:18px;
  }

  .hero-copy h1{
    font-size:36px;
  }

  .hero-copy .actions{
    grid-template-columns:1fr;
  }
}


/* V1.7.3 — image-based service cards */
.service-image-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:16px;
}
.service-image-card{
  display:block;
  min-height:0;
  padding:0;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--v172-line);
  border-radius:18px;
  color:inherit;
  text-decoration:none;
}
.service-image-card:hover{transform:translateY(-4px);box-shadow:0 16px 38px rgba(79,52,39,.09)}
.service-media{
  aspect-ratio:4/3;
  overflow:hidden;
  background:#f2e8e2;
}
.service-media img{
  width:100%;height:100%;object-fit:cover;display:block;
  transition:transform .45s ease;
}
.service-image-card:hover .service-media img{transform:scale(1.045)}
.service-image-placeholder{
  width:100%;height:100%;
  display:flex;flex-direction:column;justify-content:center;align-items:center;
  gap:8px;color:#a47b66;
  background:linear-gradient(135deg,#f8f0eb,#eadbd2);
}
.service-image-placeholder span{font-family:serif;font-size:28px}
.service-image-placeholder b{font-size:10px;letter-spacing:.18em;font-weight:500}
.service-body{padding:20px 18px 18px}
.service-body .service-num{font-size:11px;color:#b17d65}
.service-body h3{font-size:21px;margin:12px 0 8px;line-height:1.3}
.service-body p{font-size:14px;line-height:1.65;min-height:46px;margin:0 0 18px;color:#725f55}
.service-meta{display:flex;justify-content:space-between;gap:8px;align-items:center}
.service-meta small{color:#9b7b6b}
.service-meta b{font-size:13px;color:#8d604b;white-space:nowrap}
.service-subhero-grid{display:grid;grid-template-columns:1fr minmax(340px,520px);gap:56px;align-items:center}
.service-detail-image{border-radius:22px;overflow:hidden;aspect-ratio:4/3}
.service-detail-image img{width:100%;height:100%;object-fit:cover;display:block}

@media(max-width:1100px){
 .service-image-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
 .service-image-grid{
   display:flex;
   overflow-x:auto;
   gap:12px;
   margin-left:-14px;
   margin-right:-14px;
   padding:0 14px 12px;
   scroll-snap-type:x mandatory;
   scrollbar-width:none;
 }
 .service-image-grid::-webkit-scrollbar{display:none}
 .service-image-card{
   flex:0 0 78%;
   scroll-snap-align:start;
 }
 .service-body h3{font-size:22px}
 .service-body p{min-height:0}
 .service-subhero-grid{grid-template-columns:1fr;gap:28px}
 .service-detail-image{order:-1}
}


/* V1.7.3.1 — service card layout fix */

/* Desktop: 3 + 2 cards, wider cards, readable horizontal text */
.service-image-grid{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:22px !important;
}
.service-image-card{
  min-width:0;
}
.service-media{
  aspect-ratio:16/9;
}
.service-body{
  padding:22px 22px 20px;
}
.service-body h3{
  font-size:24px;
  line-height:1.35;
  margin:10px 0 8px;
  writing-mode:horizontal-tb;
  word-break:keep-all;
  overflow-wrap:normal;
}
.service-body p{
  font-size:15px;
  line-height:1.7;
  min-height:50px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.service-meta{
  margin-top:18px;
}
.service-meta small,
.service-meta b{
  font-size:13px;
}

/* Tablet: 2 columns */
@media(max-width:980px) and (min-width:701px){
  .service-image-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

/* Mobile: wider slide cards, no squeezed text */
@media(max-width:700px){
  .service-image-grid{
    display:flex !important;
    grid-template-columns:none !important;
    gap:14px !important;
    overflow-x:auto;
    margin-left:-14px;
    margin-right:-14px;
    padding:0 14px 14px;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
  }

  .service-image-card{
    flex:0 0 86%;
    max-width:86%;
    scroll-snap-align:start;
    border-radius:18px;
  }

  .service-media{
    aspect-ratio:16/10;
  }

  .service-body{
    padding:20px 18px 18px;
  }

  .service-body .service-num{
    display:block;
    margin-bottom:6px;
  }

  .service-body h3{
    font-size:23px;
    line-height:1.35;
    margin:0 0 8px;
    writing-mode:horizontal-tb !important;
    word-break:keep-all !important;
    overflow-wrap:normal !important;
    white-space:normal;
  }

  .service-body p{
    min-height:0;
    font-size:15px;
    line-height:1.65;
    -webkit-line-clamp:2;
  }

  .service-meta{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-top:16px;
  }

  .service-meta small,
  .service-meta b{
    font-size:13px;
    white-space:nowrap;
  }
}

/* Very narrow phones: single comfortable card width */
@media(max-width:390px){
  .service-image-card{
    flex-basis:90%;
    max-width:90%;
  }

  .service-body{
    padding:18px 16px 16px;
  }

  .service-body h3{
    font-size:22px;
  }

  .service-meta{
    align-items:flex-end;
  }
}


/* V1.7.3.2 — service text hierarchy:
   標題 → 說明 → 課程時間 */
.service-image-card .service-body{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  text-align:left;
}
.service-image-card .service-body h3{
  width:100%;
  margin:0 0 10px !important;
  font-size:24px;
  line-height:1.35;
  writing-mode:horizontal-tb !important;
  word-break:keep-all !important;
}
.service-image-card .service-body p{
  width:100%;
  margin:0 0 16px !important;
  min-height:0 !important;
  font-size:15px;
  line-height:1.7;
}
.service-duration{
  width:100%;
  padding-top:14px;
  margin-top:auto;
  border-top:1px solid #eee1da;
  font-size:14px;
  line-height:1.5;
  color:#9b725e;
}
.service-link{
  width:100%;
  margin-top:12px;
  font-size:13px;
  color:#8d604b;
  text-align:right;
}
@media(max-width:700px){
  .service-image-card .service-body h3{
    font-size:23px;
    margin-bottom:8px !important;
  }
  .service-image-card .service-body p{
    font-size:15px;
    margin-bottom:14px !important;
  }
  .service-duration{
    padding-top:12px;
    font-size:14px;
  }
  .service-link{
    margin-top:10px;
  }
}
/* ===== PENNY BEAUTY Hero 標題優化 ===== */

.hero h1{
    font-family: "Noto Serif TC", "Source Han Serif TC", "PingFang TC", serif;
    font-weight: 300;
    line-height: 1.22;
    letter-spacing: 0.01em;
}

/* 手機版 */
@media (max-width: 700px){

    .hero h1{
        font-size: clamp(42px, 11.2vw, 54px);
        line-height: 1.18;
        letter-spacing: -0.02em;
        font-weight: 300;
        max-width: 100%;
    }

    .hero-copy{
        padding-left: 24px;
        padding-right: 24px;
    }
}
.hero-title-line{
    display:block;
}

@media (max-width:700px){
    .hero-title-line{
        white-space:nowrap;
    }
}
/* ===== V1.8.2 Hero typography final =====
   Removed old Noto Serif / PMingLiU rule.
   Use modern system sans-serif on Windows / macOS / iOS. */
.hero .hero-copy h1{
  font-family:"Microsoft JhengHei","PingFang TC",Arial,sans-serif !important;
  font-size:clamp(54px,4.25vw,72px);
  font-weight:600 !important;
  line-height:1.16;
  letter-spacing:-0.045em;
  margin:.28em 0 .42em;
}
.hero .hero-title-line{
  display:block;
  white-space:nowrap;
}

@media(max-width:900px){
  .hero .hero-copy h1{
    font-size:clamp(40px,7.2vw,56px);
    line-height:1.16;
  }
}

@media(max-width:700px){
  .hero-copy{
    padding-left:24px;
    padding-right:24px;
  }
  .hero .hero-copy h1{
    font-size:clamp(34px,9.4vw,46px);
    line-height:1.18;
    letter-spacing:-0.05em;
    max-width:none;
  }
  .hero .hero-title-line{
    white-space:nowrap;
  }
}

@media(max-width:390px){
  .hero .hero-copy h1{
    font-size:9vw;
  }
}

/* V1.7.5.0 — Mobile compact reviews + locations */
@media (max-width:700px){

  /* 客戶評價：改成左右滑動卡片，降低垂直佔用 */
  .review-grid{
    display:flex !important;
    grid-template-columns:none !important;
    overflow-x:auto;
    gap:12px;
    margin-left:-14px;
    margin-right:-14px;
    padding:0 14px 10px;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .review-grid::-webkit-scrollbar{display:none}

  .review-grid article{
    flex:0 0 82%;
    max-width:82%;
    min-height:180px;
    box-sizing:border-box;
    padding:22px 20px !important;
    border-radius:18px;
    scroll-snap-align:start;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
  }

  .review-grid .stars{
    font-size:18px;
    line-height:1;
    margin-bottom:14px;
  }

  .review-grid p{
    font-size:17px !important;
    line-height:1.55;
    margin:0 0 18px;
  }

  .review-grid b{
    margin-top:auto;
    font-size:14px;
  }

  /* 評價區整體上下留白縮小 */
  .section:has(.review-grid){
    padding-top:44px;
    padding-bottom:44px;
  }
  .section:has(.review-grid) .section-head{
    margin-bottom:22px;
  }

  /* 工作室：壓縮每張卡片高度與行距 */
  .locations{
    padding-top:44px !important;
    padding-bottom:42px !important;
  }

  .locations .section-head{
    margin-bottom:18px;
  }

  .location-grid{
    grid-template-columns:1fr !important;
    gap:10px !important;
  }

  .location-grid article{
    padding:18px 18px !important;
    min-height:0 !important;
    border-radius:16px;
  }

  .location-grid span{
    display:block;
    margin-bottom:8px;
    font-size:10px;
    line-height:1.2;
  }

  .location-grid h3{
    font-size:24px !important;
    line-height:1.25;
    margin:0 0 7px !important;
  }

  .location-grid p{
    font-size:15px;
    line-height:1.45;
    margin:0 !important;
  }

  .locations .center-action{
    margin-top:18px;
  }
}

@media (max-width:390px){
  .review-grid article{
    flex-basis:88%;
    max-width:88%;
  }
}

/* ===== V1.8.2 FINAL TITLE FONT OVERRIDE ===== */
.hero .hero-copy h1,
.section-head h2,
.about h2,
.locations h2,
.cta h2,
body .section h2{
  font-family:"Microsoft JhengHei","PingFang TC",Arial,sans-serif !important;
  font-weight:600 !important;
  letter-spacing:-0.04em !important;
}

