/* ============================================================
   地熱米休閒農場  DIY及民宿  —  style.css
   宜蘭三星 · 太平山下 · 安農溪畔 · 百年種稻
   配色：稻金 gold / 稻田綠 paddy / 地熱橘 terra / 米紙 paper
   ============================================================ */

/* ---------- 0. Reset & in-app webview 防呆 ---------- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --rice-50:#fbf7ee;
  --rice-100:#f5ecd9;
  --rice-200:#ecddc0;
  --gold:#c99a3b;
  --gold-deep:#a87d27;
  --paddy:#4f6f3a;
  --paddy-deep:#37531f;
  --paddy-ink:#26401a;
  --terra:#c5603c;
  --terra-deep:#a64a2c;
  --ink:#2c2418;
  --ink-soft:#574c3b;
  --muted:#8a7d66;
  --line:#e6dabf;
  --white:#ffffff;
  --serif:"Noto Serif TC","Songti TC",serif;
  --sans:"Noto Sans TC",-apple-system,BlinkMacSystemFont,"PingFang TC","Microsoft JhengHei",sans-serif;
  --shadow-sm:0 2px 10px rgba(54,40,16,.06);
  --shadow:0 14px 40px -18px rgba(54,40,16,.30);
  --shadow-lg:0 30px 70px -30px rgba(54,40,16,.45);
  --radius:16px;
  --radius-sm:10px;
  --wrap:1180px;
  --nav-h:74px;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--rice-50);
  line-height: 1.85;
  font-size: 17px;
  overflow-x: clip;                 /* sticky-header 殺手是 hidden，改用 clip */
  -webkit-font-smoothing: antialiased;
}

/* 背景鎖捲（行動選單 / lightbox 開啟時）— position:fixed 才能擋住 iOS Safari 的背景滑動 */
body.scroll-locked { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }

img { max-width: 100%; display: block; height: auto; }
a { color: var(--terra-deep); text-decoration: none; transition: color .2s; }
a:hover { color: var(--terra); }
ul { list-style: none; }

/* ---------- 1. Typography ---------- */
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 700; line-height: 1.25; color: var(--ink); letter-spacing: .01em; }
.h-eyebrow {
  display:inline-block; font-family:var(--sans); font-weight:700; font-size:.82rem;
  letter-spacing:.22em; text-transform:uppercase; color:var(--terra);
  margin-bottom:.9rem;
}
.h-eyebrow::before { content:"❋ "; color:var(--gold); }

h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.lead { font-size: clamp(1.02rem, 1.7vw, 1.18rem); color: var(--ink-soft); }

@media (max-width:768px){
  body{ font-size:16px; line-height:1.8; }
  h1{ font-size:2.05rem; }
  h2{ font-size:1.62rem; }
  h3{ font-size:1.22rem; }
  .lead{ font-size:1.02rem; }
  .h-eyebrow{ font-size:.78rem; }
}

/* ---------- 2. Layout helpers ---------- */
.wrap { width: min(var(--wrap), 92%); margin-inline: auto; }
.wrap-narrow { width: min(820px, 92%); margin-inline: auto; }
section { padding: clamp(3.4rem, 7vw, 6rem) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(2rem,4vw,3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: .7rem; }
.tint { background: var(--rice-100); }
.tint-deep { background: linear-gradient(170deg,#fdfaf3,#f3e8cf); }
.text-center { text-align: center; }

/* decorative rice divider */
.divider { display:flex; align-items:center; justify-content:center; gap:.8rem; color:var(--gold); margin:0 auto; }
.divider::before,.divider::after{ content:""; height:1px; width:54px; background:linear-gradient(90deg,transparent,var(--gold)); }
.divider span{ font-size:.85rem; letter-spacing:.3em; }

/* ---------- 3. Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:.5rem; cursor:pointer;
  font-family:var(--sans); font-weight:700; font-size:1rem;
  padding:.85rem 1.7rem; border-radius:999px; border:1.5px solid transparent;
  transition:transform .15s, box-shadow .2s, background .2s, color .2s; white-space:nowrap;
}
.btn:active{ transform:translateY(1px); }
.btn-primary{ background:var(--terra); color:#fff; box-shadow:0 10px 24px -10px rgba(165,74,44,.7); }
.btn-primary:hover{ background:var(--terra-deep); color:#fff; box-shadow:0 14px 30px -10px rgba(165,74,44,.8); }
.btn-gold{ background:var(--gold); color:#3a2c08; }
.btn-gold:hover{ background:var(--gold-deep); color:#fff; }
.btn-ghost{ background:transparent; color:var(--ink); border-color:var(--line); }
.btn-ghost:hover{ border-color:var(--terra); color:var(--terra); }
.btn-light{ background:rgba(255,255,255,.16); color:#fff; border-color:rgba(255,255,255,.55); backdrop-filter:blur(4px); }
.btn-light:hover{ background:#fff; color:var(--ink); }
.btn-lg{ padding:1rem 2.1rem; font-size:1.06rem; }

/* ---------- 4. Header / nav ---------- */
.site-header{
  position:sticky; top:0; z-index:80;
  height:var(--nav-h); display:flex; align-items:center;
  transition:background .3s, box-shadow .3s, border-color .3s;
  border-bottom:1px solid transparent;
}
.site-header .wrap{ display:flex; align-items:center; justify-content:space-between; gap:1rem; width:min(var(--wrap),94%); }
/* transparent over hero */
.site-header.transparent{ background:linear-gradient(180deg,rgba(20,28,12,.55),transparent); }
.site-header.transparent .nav-links a,
.site-header.transparent .brand-text b,
.site-header.transparent .brand-text small,
.site-header.transparent .menu-toggle span{ color:#fff; }
.site-header.transparent .brand-text small{ color:rgba(255,255,255,.82); }
.site-header.transparent .menu-toggle span{ background:#fff; }
/* solid (scrolled or inner pages) */
.site-header.solid{ background:rgba(251,247,238,.94); backdrop-filter:saturate(1.4) blur(10px); box-shadow:var(--shadow-sm); border-color:var(--line); }

.brand{ display:flex; align-items:center; gap:.6rem; }
.brand svg, .brand img.mark{ width:42px; height:42px; flex:none; }
.brand .logo-img{ height:46px; width:auto; flex:none; display:block; }
.site-header.transparent .brand .logo-img{ filter:drop-shadow(0 2px 7px rgba(0,0,0,.5)); }
@media (max-width:768px){ .brand .logo-img{ height:40px; } }
.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-text b{ font-family:var(--serif); font-size:1.28rem; color:var(--ink); letter-spacing:.04em; }
.brand-text small{ font-size:.66rem; letter-spacing:.18em; color:var(--muted); font-weight:600; }

.nav-links{ display:flex; align-items:center; gap:.35rem; }
.nav-links a{
  color:var(--ink); font-weight:600; font-size:.97rem; padding:.5rem .8rem; border-radius:8px;
  position:relative;
}
.nav-links a:hover{ color:var(--terra); }
.nav-links a.active{ color:var(--terra); }
.nav-links a.active::after{
  content:""; position:absolute; left:.8rem; right:.8rem; bottom:.25rem; height:2px;
  background:var(--terra); border-radius:2px;
}
.nav-cta{ margin-left:.5rem; }

/* hamburger */
.menu-toggle{
  display:none; flex-direction:column; gap:5px; width:42px; height:42px;
  align-items:center; justify-content:center; background:none; border:none; cursor:pointer;
}
.menu-toggle span{ width:24px; height:2px; background:var(--ink); border-radius:2px; transition:transform .3s, opacity .3s; }

/* mobile drawer */
.nav-overlay{
  position:fixed; inset:0; background:rgba(28,20,12,.5); opacity:0; visibility:hidden;
  transition:opacity .3s, visibility .3s; z-index:90;
}
.nav-overlay.open{ opacity:1; visibility:visible; }

@media (max-width:920px){
  .menu-toggle{ display:flex; }
  .nav-overlay{ display:none; }                 /* 全螢幕選單，不需要半透明遮罩 */
  .nav-links{
    position:fixed; top:0; left:0; right:0; width:auto; max-width:100vw;
    height:100vh; height:100dvh;
    background:var(--rice-50); flex-direction:column; align-items:stretch; justify-content:flex-start;
    gap:.1rem; padding:1.3rem 1.5rem 2rem;
    transform:translateX(100%); transition:transform .33s cubic-bezier(.5,0,.2,1); z-index:100;
    overflow-y:auto; overflow-x:hidden;
  }
  .nav-links::before{                           /* 選單頂端品牌 LOGO（疊在頂列左側） */
    content:""; position:absolute; top:24px; left:1.5rem; width:120px; height:40px;
    background:url(../images/logo.png) left center / auto 40px no-repeat; pointer-events:none;
  }
  .nav-links.open{ transform:translateX(0); }
  .site-header.transparent .nav-links a{ color:var(--ink); }   /* drawer 永遠米底深字 */
  .site-header.transparent .nav-links a.active{ color:var(--terra); }
  .nav-links a{ font-size:1.1rem; padding:.85rem .6rem; border-bottom:1px solid var(--line); border-radius:0; }
  .nav-links a.active::after{ display:none; }
  .nav-links .nav-cta{ margin:1rem 0 0; }
  .nav-links .btn{ width:100%; justify-content:center; }
  .nav-close{                                   /* 收合鈕＝flex 項目（避開 abspos/overflow 雷）+ 純 CSS 畫叉（不靠字型字元）*/
    order:-1; align-self:flex-end; position:relative; flex:none;
    width:44px; height:44px; margin:0 -.2rem .6rem 0;
    border:none; background:rgba(40,30,18,.05); border-radius:50%;
    font-size:0; color:transparent; cursor:pointer;
  }
  .nav-close::before, .nav-close::after{
    content:""; position:absolute; top:50%; left:50%; width:21px; height:2.5px;
    background:var(--ink); border-radius:2px;
  }
  .nav-close::before{ transform:translate(-50%,-50%) rotate(45deg); }
  .nav-close::after{  transform:translate(-50%,-50%) rotate(-45deg); }
}
@media (min-width:921px){ .nav-close{ display:none; } }

/* ---------- 5. Hero ---------- */
.hero{
  position:relative; min-height:clamp(560px,92vh,860px); display:flex; align-items:center;
  margin-top:calc(var(--nav-h) * -1);   /* tuck under transparent header */
  color:#fff; overflow:hidden;
}
.hero-bg{ position:absolute; inset:0; z-index:-2; }
.hero-bg img{ width:100%; height:100%; object-fit:cover; }
.hero::after{
  content:""; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(105deg,rgba(28,33,14,.72) 0%,rgba(30,35,16,.45) 45%,rgba(30,35,16,.15) 100%),
             linear-gradient(0deg,rgba(20,24,10,.55),transparent 45%);
}
.hero-inner{ width:min(var(--wrap),92%); margin-inline:auto; padding-top:var(--nav-h); }
.hero-inner .eyebrow{
  display:inline-flex; gap:.6rem; align-items:center; font-weight:700; letter-spacing:.18em;
  font-size:.85rem; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.35);
  padding:.4rem 1rem; border-radius:999px; backdrop-filter:blur(4px); margin-bottom:1.4rem;
}
.hero h1{ color:#fff; max-width:20ch; text-shadow:0 2px 30px rgba(0,0,0,.35); }
.hero h1 em{ font-style:normal; color:#f3cd7e; }
.hero h1 .hero-brand{ display:block; letter-spacing:.03em; }
.hero h1 .hero-tag{ display:block; font-size:.58em; font-weight:500; line-height:1.45; margin-top:.7rem; }
@media (max-width:768px){ .hero h1 .hero-tag{ font-size:.62em; } }
.hero-sub{ margin-top:1.2rem; max-width:42ch; font-size:clamp(1.05rem,2vw,1.25rem); color:rgba(255,255,255,.92); }
.hero-cta{ margin-top:2rem; display:flex; gap:.9rem; flex-wrap:wrap; }
.hero-facts{
  margin-top:2.6rem; display:flex; gap:1.8rem; flex-wrap:wrap; color:rgba(255,255,255,.9);
  border-top:1px solid rgba(255,255,255,.25); padding-top:1.3rem; max-width:640px;
}
.hero-facts b{ display:block; font-family:var(--serif); font-size:1.45rem; color:#f3cd7e; }
.hero-facts span{ font-size:.86rem; letter-spacing:.05em; }
@media (max-width:768px){
  .hero{ min-height:88vh; }
  .hero-facts{ gap:1.2rem; }
  .hero-facts b{ font-size:1.2rem; }
}

/* ---------- 6. Pillars ---------- */
.pillars{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.4rem; }
.pillar{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:2rem 1.6rem; text-align:center; box-shadow:var(--shadow-sm);
  transition:transform .2s, box-shadow .2s;
}
.pillar:hover{ transform:translateY(-4px); box-shadow:var(--shadow); }
.pillar .ico{
  width:62px; height:62px; margin:0 auto 1rem; border-radius:50%;
  display:grid; place-items:center; background:var(--rice-100); color:var(--paddy);
}
.pillar .ico svg{ width:30px; height:30px; }
.pillar h3{ margin-bottom:.4rem; }
.pillar p{ color:var(--ink-soft); font-size:.97rem; }
@media (max-width:780px){ .pillars{ grid-template-columns:1fr; gap:1rem; } }

/* ---------- 7. Split (image + text) ---------- */
.split{ display:grid; grid-template-columns:1.05fr 1fr; gap:clamp(1.6rem,4vw,3.6rem); align-items:center; }
.split.reverse .split-media{ order:2; }
.split-media{ position:relative; }
.split-media img{ width:100%; border-radius:var(--radius); box-shadow:var(--shadow); aspect-ratio:5/4; object-fit:cover; }
.split-media .badge{
  position:absolute; bottom:-22px; right:-12px; background:var(--paddy); color:#fff;
  border-radius:var(--radius-sm); padding:1rem 1.3rem; box-shadow:var(--shadow); max-width:230px;
}
.split-media .badge b{ font-family:var(--serif); font-size:1.7rem; color:#f3cd7e; display:block; }
.split-media .badge span{ font-size:.82rem; }
.split-body p + p{ margin-top:1rem; }
.split-body .lead{ margin-bottom:1.1rem; }
.checklist{ margin-top:1.4rem; display:grid; gap:.7rem; }
.checklist li{ display:flex; gap:.7rem; align-items:flex-start; color:var(--ink-soft); }
.checklist li::before{ content:"✓"; color:var(--paddy); font-weight:800; flex:none; margin-top:.1rem; }
@media (max-width:840px){
  .split{ grid-template-columns:1fr; }
  .split.reverse .split-media{ order:0; }
  .split-media .badge{ right:12px; bottom:-18px; padding:.8rem 1rem; }
}

/* ---------- 8. Cards grid ---------- */
.grid{ display:grid; gap:1.5rem; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
@media (max-width:900px){ .grid-3{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:620px){ .grid-3,.grid-2{ grid-template-columns:1fr; } }

.card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden;
  box-shadow:var(--shadow-sm); display:flex; flex-direction:column; transition:transform .22s, box-shadow .22s;
}
.card:hover{ transform:translateY(-5px); box-shadow:var(--shadow); }
.card-media{ position:relative; aspect-ratio:4/3; overflow:hidden; }
.card-media img{ width:100%; height:100%; object-fit:cover; transition:transform .5s; }
.card:hover .card-media img{ transform:scale(1.06); }
.card-tag{
  position:absolute; top:12px; left:12px; background:rgba(38,64,26,.92); color:#fff;
  font-size:.74rem; font-weight:700; letter-spacing:.05em; padding:.3rem .7rem; border-radius:999px;
}
.card-tag.gold{ background:var(--gold); color:#3a2c08; }
.card-body{ padding:1.3rem 1.4rem 1.5rem; display:flex; flex-direction:column; flex:1; }
.card-body h3{ margin-bottom:.5rem; }
.card-body p{ color:var(--ink-soft); font-size:.95rem; }
.card-meta{ margin-top:.9rem; display:flex; flex-wrap:wrap; gap:.4rem .6rem; font-size:.84rem; color:var(--muted); }
.card-meta span{ background:var(--rice-100); padding:.25rem .65rem; border-radius:999px; }
.card-foot{ margin-top:auto; padding-top:1.1rem; display:flex; align-items:center; justify-content:space-between; gap:.5rem; }
.price b{ font-family:var(--serif); font-size:1.35rem; color:var(--terra-deep); }
.price small{ color:var(--muted); font-size:.78rem; }
.card-link{ font-weight:700; font-size:.92rem; }
.card-link::after{ content:" →"; }

/* ---------- 9. Room detail rows ---------- */
.room{
  display:grid; grid-template-columns:1.1fr 1fr; gap:0; background:var(--white);
  border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-sm);
}
.room + .room{ margin-top:1.8rem; }
.room.reverse .room-img{ order:2; }
.room-img{ min-height:320px; }
.room-img img{ width:100%; height:100%; object-fit:cover; min-height:320px; }
.room-info{ padding:clamp(1.6rem,3vw,2.4rem); display:flex; flex-direction:column; }
.room-info .num{ font-family:var(--serif); color:var(--gold-deep); font-weight:700; letter-spacing:.1em; }
.room-info h3{ font-size:1.5rem; margin:.2rem 0 .5rem; }
.amenities{ display:flex; flex-wrap:wrap; gap:.5rem; margin:1.1rem 0 1.3rem; }
.amenities span{
  font-size:.84rem; color:var(--ink-soft); background:var(--rice-100); border:1px solid var(--line);
  padding:.3rem .75rem; border-radius:999px;
}
.room-info .room-foot{ margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
@media (max-width:840px){
  .room{ grid-template-columns:1fr; }
  .room.reverse .room-img{ order:0; }
  .room-img img{ min-height:240px; }
}

/* ---------- 10. Itinerary timeline ---------- */
.timeline{ max-width:780px; margin-inline:auto; position:relative; padding-left:1.4rem; }
.timeline::before{ content:""; position:absolute; left:7px; top:6px; bottom:6px; width:2px; background:var(--line); }
.tl-item{ position:relative; padding:0 0 1.8rem 1.8rem; }
.tl-item:last-child{ padding-bottom:0; }
.tl-item::before{
  content:""; position:absolute; left:-1px; top:5px; width:16px; height:16px; border-radius:50%;
  background:var(--terra); border:3px solid var(--rice-50); box-shadow:0 0 0 2px var(--terra);
}
.tl-item .time{ font-family:var(--serif); font-weight:700; color:var(--terra-deep); }
.tl-item h4{ font-family:var(--sans); font-weight:700; margin:.15rem 0 .25rem; font-size:1.05rem; }
.tl-item p{ color:var(--ink-soft); font-size:.95rem; }

/* ---------- 11. Stat / feature strip ---------- */
.featurelist{ display:grid; grid-template-columns:repeat(4,1fr); gap:1.2rem; }
.featurelist .fi{ text-align:center; padding:1.2rem .5rem; }
.featurelist .fi svg{ width:34px; height:34px; color:var(--paddy); margin-bottom:.5rem; }
.featurelist .fi b{ display:block; font-family:var(--serif); font-size:1.05rem; }
.featurelist .fi span{ font-size:.86rem; color:var(--muted); }
@media (max-width:700px){ .featurelist{ grid-template-columns:repeat(2,1fr); } }

/* ---------- 12. CTA band ---------- */
.cta-band{ position:relative; color:#fff; text-align:center; overflow:hidden; }
.cta-band .bg{ position:absolute; inset:0; z-index:-2; }
.cta-band .bg img{ width:100%; height:100%; object-fit:cover; }
.cta-band::after{ content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(0deg,rgba(34,52,22,.55),rgba(34,52,22,.28)); }
.cta-band h2{ color:#fff; text-shadow:0 2px 16px rgba(22,32,12,.6); }
.cta-band .h-eyebrow{ text-shadow:0 1px 10px rgba(22,32,12,.55); }
.cta-band p{ color:#fff; max-width:46ch; margin:1rem auto 0; text-shadow:0 1px 12px rgba(22,32,12,.6); }
.cta-band .hero-cta{ justify-content:center; }

/* ---------- 13. Info / contact ---------- */
.info-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.4rem; }
.info-card{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:1.7rem; box-shadow:var(--shadow-sm); }
.info-card .ico{ width:52px; height:52px; border-radius:14px; background:var(--rice-100); color:var(--terra); display:grid; place-items:center; margin-bottom:1rem; }
.info-card .ico svg{ width:26px; height:26px; }
.info-card h3{ font-size:1.15rem; margin-bottom:.3rem; }
.info-card p,.info-card a{ color:var(--ink-soft); font-size:.97rem; }
.info-card a{ font-weight:600; color:var(--terra-deep); }
@media (max-width:820px){ .info-grid{ grid-template-columns:1fr; } }

/* contact form */
.form{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:clamp(1.6rem,3vw,2.4rem); box-shadow:var(--shadow-sm); }
.form .row{ display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.form label{ display:block; font-weight:600; font-size:.9rem; margin-bottom:.35rem; color:var(--ink); }
.form input,.form select,.form textarea{
  width:100%; font-family:var(--sans); font-size:1rem; padding:.75rem .9rem; border:1.5px solid var(--line);
  border-radius:10px; background:var(--rice-50); color:var(--ink); transition:border-color .2s;
}
.form input:focus,.form select:focus,.form textarea:focus{ outline:none; border-color:var(--terra); background:#fff; }
.form .field{ margin-bottom:1.1rem; }
.form textarea{ resize:vertical; min-height:120px; }
.form .note{ font-size:.84rem; color:var(--muted); margin-top:.4rem; }
@media (max-width:620px){ .form .row{ grid-template-columns:1fr; } }

.map-embed{ border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-sm); border:1px solid var(--line); }
.map-embed iframe{ width:100%; height:100%; min-height:340px; border:0; display:block; }

/* ---------- 14. Page header (inner) ---------- */
.page-hero{ position:relative; color:#fff; padding:calc(var(--nav-h) + 3.6rem) 0 3.6rem; margin-top:calc(var(--nav-h) * -1); overflow:hidden; }
.page-hero .bg{ position:absolute; inset:0; z-index:-2; }
.page-hero .bg img{ width:100%; height:100%; object-fit:cover; }
.page-hero::after{ content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(100deg,rgba(28,33,14,.78),rgba(30,35,16,.42)); }
.page-hero h1{ color:#fff; }
.page-hero p{ color:rgba(255,255,255,.9); max-width:48ch; margin-top:.7rem; }
.crumb{ font-size:.85rem; color:rgba(255,255,255,.78); margin-bottom:1rem; letter-spacing:.04em; }
.crumb a{ color:rgba(255,255,255,.9); }

/* ---------- 15. Prose ---------- */
.prose p{ margin-bottom:1.15rem; color:var(--ink-soft); }
.prose h2{ margin:2.4rem 0 1rem; }
.prose h3{ margin:1.8rem 0 .7rem; color:var(--paddy-deep); }
.prose strong{ color:var(--ink); }
.prose ul{ margin:0 0 1.2rem; display:grid; gap:.5rem; }
.prose ul li{ padding-left:1.4rem; position:relative; color:var(--ink-soft); }
.prose ul li::before{ content:"❋"; position:absolute; left:0; color:var(--gold); }
.pull{
  border-left:4px solid var(--gold); background:var(--rice-100); padding:1.2rem 1.4rem;
  border-radius:0 12px 12px 0; font-family:var(--serif); font-size:1.2rem; color:var(--paddy-deep); margin:1.8rem 0;
}

/* ---------- 16. Footer ---------- */
.site-footer{ background:var(--paddy-ink); color:rgba(255,255,255,.78); padding:3.5rem 0 1.6rem; }
.footer-grid{ display:grid; grid-template-columns:1.5fr 1fr 1fr 1.2fr; gap:2rem; }
.site-footer h4{ color:#fff; font-family:var(--sans); font-size:.95rem; letter-spacing:.08em; margin-bottom:1rem; }
.site-footer a{ color:rgba(255,255,255,.78); }
.site-footer a:hover{ color:#f3cd7e; }
.footer-brand{ display:flex; gap:.6rem; align-items:center; margin-bottom:1rem; }
.footer-brand svg{ width:46px; height:46px; }
.footer-brand .logo-img{ height:58px; width:auto; }
.footer-brand b{ font-family:var(--serif); font-size:1.3rem; color:#fff; }
.footer-brand small{ display:block; font-size:.7rem; letter-spacing:.16em; color:rgba(255,255,255,.6); }
.footer-col ul{ display:grid; gap:.55rem; font-size:.93rem; }
.footer-contact li{ display:flex; gap:.6rem; align-items:flex-start; margin-bottom:.6rem; font-size:.93rem; }
.footer-contact svg{ width:18px; height:18px; flex:none; margin-top:.3rem; color:#f3cd7e; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.15); margin-top:2.6rem; padding-top:1.4rem; display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; font-size:.84rem; color:rgba(255,255,255,.6); }
@media (max-width:860px){ .footer-grid{ grid-template-columns:1fr 1fr; gap:1.6rem; } }
@media (max-width:520px){ .footer-grid{ grid-template-columns:1fr; } }

/* ---------- 17. Floating contact buttons ---------- */
.floats{ position:fixed; right:16px; bottom:16px; z-index:70; display:flex; flex-direction:column; gap:.6rem; }
.floats a{
  width:54px; height:54px; border-radius:50%; display:grid; place-items:center; color:#fff;
  box-shadow:var(--shadow); transition:transform .2s;
}
.floats a:hover{ transform:scale(1.08); color:#fff; }
.floats .line{ background:#06c755; }
.floats .tel{ background:var(--terra); }
.floats svg{ width:26px; height:26px; }
@media (max-width:768px){ .floats a{ width:50px; height:50px; } }

/* ---------- 18. Lightbox ---------- */
.lightbox{ position:fixed; inset:0; background:rgba(20,16,8,.92); z-index:120; display:none; place-items:center; padding:5vw; }
.lightbox.open{ display:grid; }
.lightbox img{ max-width:100%; max-height:88vh; border-radius:8px; box-shadow:var(--shadow-lg); }
.lightbox .close{ position:absolute; top:18px; right:24px; background:none; border:none; color:#fff; font-size:2.6rem; cursor:pointer; line-height:1; }

/* ---------- 19. Reveal on scroll ---------- */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){ .reveal{ opacity:1; transform:none; transition:none; } html{ scroll-behavior:auto; } }

/* photo-grid（外觀 / 房型實景相簿，4:3 較適合建築與房間） */
.photo-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; }
.photo-grid img{ width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:12px; cursor:zoom-in; box-shadow:var(--shadow-sm); transition:transform .3s, filter .3s; }
.photo-grid img:hover{ transform:scale(1.02); filter:brightness(1.04); }
@media (max-width:820px){ .photo-grid{ grid-template-columns:repeat(2,1fr); } }

/* gallery */
.gallery{ display:grid; grid-template-columns:repeat(4,1fr); gap:.8rem; }
.gallery img{ aspect-ratio:1; object-fit:cover; border-radius:10px; cursor:pointer; transition:transform .3s, filter .3s; }
.gallery img:hover{ transform:scale(1.03); filter:brightness(1.05); }
@media (max-width:700px){ .gallery{ grid-template-columns:repeat(2,1fr); } }

/* utility */
.mt-0{margin-top:0}
.center-btns{ display:flex; gap:.9rem; justify-content:center; flex-wrap:wrap; margin-top:2rem; }
