/* 建榮室內設計 jrid.com.tw — self-hosted theme (凜1) */
@font-face{font-family:"Montserrat";font-weight:400;font-display:swap;src:url(../fonts/montserrat-400.woff2) format("woff2")}
@font-face{font-family:"Montserrat";font-weight:500;font-display:swap;src:url(../fonts/montserrat-500.woff2) format("woff2")}
@font-face{font-family:"Montserrat";font-weight:600;font-display:swap;src:url(../fonts/montserrat-600.woff2) format("woff2")}
:root{--dark:#393B36;--taupe:#ADA193;--sand:#d7cdc0;--bg:#F6F7F7;--line:#DBDCDC;--text:#1e1b1a;--hh:96px}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;font-family:"Montserrat","微軟正黑體","Microsoft JhengHei","PingFang TC","Noto Sans TC",sans-serif;font-size:1rem;line-height:1.68;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;border:0;display:block}
a{color:inherit;text-decoration:none;transition:color .2s}
h1,h2,h3,h4{margin:0;font-weight:500;line-height:1.35}
p{margin:0 0 1em}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* ---------- header ---------- */
.site-header{position:fixed;top:0;left:0;right:0;z-index:900;height:var(--hh);display:flex;align-items:center;justify-content:space-between;padding:0 3%;background:var(--dark);transition:background .3s,height .3s}
.home .site-header{background:transparent}
.home .site-header.scrolled,.site-header.scrolled{background:rgba(57,59,54,.96);height:76px}
.logo img{height:58px;width:auto}
.scrolled .logo img{height:48px}
.nav ul{list-style:none;margin:0;padding:0;display:flex}
.nav a{position:relative;display:block;padding:6px 26px;color:#fff;white-space:nowrap;text-shadow:0 0 4px #22222275;font-weight:500}
.nav a span{display:flex;flex-direction:column;align-items:center}
.nav a b{font-weight:500;transition:opacity .2s}
.nav a em{position:absolute;font-style:normal;opacity:0;color:var(--sand);letter-spacing:.06em;transition:opacity .2s}
.nav a:hover b,.nav a.current b{opacity:0}
.nav a:hover em,.nav a.current em{opacity:1}
.nav-toggle{display:none;width:44px;height:44px;background:none;border:0;cursor:pointer;position:relative}
.nav-toggle i,.nav-toggle i::before,.nav-toggle i::after{position:absolute;left:10px;width:24px;height:2px;background:#fff;content:"";transition:.3s}
.nav-toggle i{top:21px}.nav-toggle i::before{top:-8px;left:0}.nav-toggle i::after{top:8px;left:0}
.nav-open .nav-toggle i{background:transparent}.nav-open .nav-toggle i::before{top:0;transform:rotate(45deg)}.nav-open .nav-toggle i::after{top:0;transform:rotate(-45deg)}

/* ---------- hero ---------- */
.hero{position:relative;height:100vh;min-height:560px;overflow:hidden;background:#222}
.hero .slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transition:opacity 1.6s ease,transform 7s ease;transform:scale(1.06)}
.hero .slide.on{opacity:1;transform:scale(1)}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(rgba(0,0,0,.25),rgba(0,0,0,.05) 40%,rgba(0,0,0,.2))}
.hero-text{position:absolute;z-index:2;left:50%;top:46%;transform:translate(-50%,-50%);width:min(1100px,62vw);text-align:center;color:#fff}
.hero-text img{margin:0 auto;width:100%}
.hero-text h1{font-size:clamp(1.1rem,1.35vw,1.9rem);font-weight:600;letter-spacing:.12em;margin-top:.6rem;text-shadow:0 0 8px rgba(0,0,0,.45)}
.hero-dots{position:absolute;z-index:3;bottom:30px;left:50%;transform:translateX(-50%);display:flex;gap:10px}
.hero-dots button{width:34px;height:3px;border:0;padding:0;background:rgba(255,255,255,.45);cursor:pointer}
.hero-dots button.on{background:#fff}

/* ---------- common ---------- */
.jr-title h2 img{width:auto;max-height:46px}
.jr-title h3,.jr-title .h3{font-size:1.5rem;font-weight:500;color:var(--dark);margin-top:.3rem}
.jr-more{display:inline-flex;align-items:center;gap:.6em;margin-top:1.6rem;color:var(--taupe);letter-spacing:.1em}
.jr-more::after{content:"";width:46px;height:1px;background:currentColor;transition:width .3s}
.jr-more:hover::after{width:70px}
.reveal{opacity:0;transform:translateY(30px);transition:opacity .9s ease,transform .9s ease}
.reveal.in{opacity:1;transform:none}
.wrap{width:min(1400px,92%);margin:0 auto}
section{scroll-margin-top:80px}

/* about */
.about{display:flex;align-items:stretch;gap:0;padding:0;margin-bottom:6%}
.about .txt{flex:0 0 50%;padding:6% 5% 5%;align-self:center}
.about .txt .jr-title{margin-bottom:2rem}
.about .txt p{line-height:2;color:#333;font-size:clamp(1rem,.95vw,1.15rem)}
.about .pic{flex:0 0 50%}
.about .pic img{width:100%;height:100%;object-fit:cover}

/* spaces */
.spaces{position:relative;display:flex;gap:0;padding:0 0 8%}
.spaces .deco{position:absolute;top:-60px;right:4%;width:40%;z-index:3;pointer-events:none;opacity:.85}
.space{position:relative;flex:1;overflow:hidden;display:block}
.space>img{width:100%;aspect-ratio:7/5;object-fit:cover;transition:transform .8s}
.space:hover>img{transform:scale(1.05)}
.space::after{content:"";position:absolute;inset:0;background:linear-gradient(160deg,rgba(0,0,0,.55),rgba(0,0,0,.12) 55%,rgba(0,0,0,.05))}
.space .jr-title{position:absolute;top:10%;left:10%;z-index:2}
.space .jr-title h3{color:#fff}

/* projects band */
.band{display:flex;min-height:700px;margin-bottom:10%;background:var(--dark) url(../img/ui/p4_bg.jpg) center/cover no-repeat}
.band .side{flex:0 0 27%;padding:5%;color:#fff;line-height:1.8}
.band .side .jr-title{margin-bottom:3rem}
.band .side .jr-title h3{color:#fff}
.band .side h2.case-name{font-size:2.5rem;font-weight:500}
.band .side h4{color:var(--taupe);font-weight:500}
.band .stage{position:relative;flex:1;margin:5% 5% -6% 0}
.band .stage .box{background:#fff;padding:30px}
.carousel{position:relative;overflow:hidden}
.carousel .track{display:flex;transition:transform .7s ease}
.carousel .item{flex:0 0 100%;position:relative;aspect-ratio:16/9;background-size:cover;background-position:center;display:block}
.carousel .item .cap{position:absolute;left:0;bottom:0;padding:.7rem 1.1rem;background:rgba(57,59,54,.82);color:#fff;font-size:.95rem}
.arrow{position:absolute;top:50%;z-index:5;width:44px;height:44px;margin-top:-22px;border-radius:50%;border:0;background:rgba(255,255,255,.85);cursor:pointer;color:var(--dark);font-size:20px;line-height:44px;text-align:center;box-shadow:0 2px 8px rgba(0,0,0,.15)}
.arrow.prev{left:-22px}.arrow.next{right:-22px}
.arrow:hover{background:var(--taupe);color:#fff}

/* articles strip */
.articles-strip{padding:0 6% 8%}
.articles-strip .head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:2rem}
.articles-strip .grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.acard{display:block;background:#fff;overflow:hidden}
.acard .ph{aspect-ratio:3/2;background:#ddd center/cover no-repeat;transition:transform .6s}
.acard:hover .ph{transform:scale(1.04)}
.acard .tx{padding:1rem 1.2rem 1.3rem}
.acard .dt{font-size:.8rem;color:var(--taupe);letter-spacing:.08em}
.acard h3{font-size:1.05rem;margin-top:.3rem;color:var(--dark)}
.acard p{font-size:.88rem;color:#666;margin:.5rem 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* process */
.process{background:#fff;padding:7% 6%}
.process .jr-title{text-align:center;margin-bottom:3rem}
.process .jr-title h2 img{margin:0 auto}
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:0;counter-reset:s}
.step{position:relative;padding:2rem 1.6rem;border-left:1px solid var(--line)}
.step:nth-child(4n+1){border-left:0}
.step:nth-child(n+5){border-top:1px solid var(--line)}
.step .no{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}
.step .no b{font-size:2.4rem;font-weight:500;color:var(--taupe);line-height:1}
.step .no img{width:46px;height:46px}
.step h3{font-size:1.2rem;color:var(--dark);margin-bottom:.6rem}
.step ul{margin:0;padding-left:1.1em;color:#555;font-size:.93rem;line-height:1.9}
.step p{color:#555;font-size:.93rem}

/* contact */
.contact{display:flex;align-items:stretch;gap:5%;padding:8% 6%}
.contact .info{flex:1}
.contact .info .jr-title{margin-bottom:1.8rem}
.contact .pic{flex:0 0 42%}
.contact .pic img{width:100%;height:100%;object-fit:cover}
.contact address{font-style:normal;line-height:2;margin-bottom:1.5rem}
.contact address a:hover{color:var(--taupe)}
.cform .row{display:flex;gap:12px;margin-bottom:12px}
.cform input,.cform select,.cform textarea{flex:1;width:100%;padding:.8rem 1rem;border:1px solid var(--line);background:#fff;font:inherit;color:var(--text);border-radius:0}
.cform textarea{min-height:110px;resize:vertical}
.cform .hp{position:absolute;left:-9999px}
.cform button{padding:.8rem 2.6rem;border:0;background:var(--dark);color:#fff;font:inherit;letter-spacing:.2em;cursor:pointer;transition:background .2s}
.cform button:hover{background:var(--taupe)}
.cform .msg{margin-top:.8rem;font-size:.92rem}
.form-link{display:flex;gap:12px;flex-wrap:wrap;margin-top:.6rem}
.form-link a{border:1px solid var(--taupe);color:var(--taupe);padding:.5rem 1.4rem}
.form-link a:hover{background:var(--taupe);color:#fff}

/* footer */
.site-footer{background:#fff;text-align:center;padding:1.6rem 1rem;font-size:14px;color:#333}
.site-footer nav{margin-bottom:.4rem;display:flex;gap:1.2rem;justify-content:center;flex-wrap:wrap;font-size:13px;color:#777}

/* floating icons */
.float-icons{position:fixed;right:12px;top:50%;transform:translateY(-50%);z-index:950;display:flex;flex-direction:column;gap:6px}
.float-icons a{display:flex;align-items:center;justify-content:flex-end;width:38px;height:38px;border-radius:19px;overflow:hidden;color:#fff;font-size:13px;transition:width .3s;white-space:nowrap;box-shadow:0 2px 6px rgba(0,0,0,.18)}
.float-icons a img{width:38px;height:38px;flex:0 0 38px;padding:8px;order:2}
.float-icons a span{padding-left:12px;order:1}
.float-icons a:hover{width:130px}
.float-icons .line{background:#06c755}.float-icons .fb{background:#3b5998}.float-icons .phone{background:#2fa88c}.float-icons .map{background:#e49b5b}

/* ---------- inner pages ---------- */
.inner main{padding-top:var(--hh)}
.page-head{text-align:center;padding:3.2rem 1rem 2rem}
.page-head h1{display:flex;flex-direction:column;align-items:center;font-size:1.9rem;color:var(--dark)}
.page-head h1 em{font-style:normal;font-size:.95rem;letter-spacing:.2em;color:var(--taupe);margin-top:.2rem}
.crumb{font-size:.82rem;color:#888;margin-top:.6rem}
.crumb a:hover{color:var(--taupe)}

/* case page */
.projects-wrap{display:flex;min-height:calc(100vh - var(--hh))}
.proj-nav{flex:0 0 232px;background:var(--dark);color:#DBDCDC;padding:1.6rem 0 2rem;text-align:center}
.proj-nav .jr-title{padding:0 1rem 1rem}
.proj-nav .jr-title img{margin:0 auto;max-height:30px}
.proj-nav .jr-title .h3{color:#fff;font-size:1.3rem;margin-top:.4rem}
.proj-nav ul{list-style:none;margin:0;padding:0}
.proj-nav li a{display:block;padding:.45rem .8rem;font-size:.92rem;color:#cfcfcf}
.proj-nav li a:hover{color:#fff}
.proj-nav li.on a{color:#fff;text-decoration:underline;text-underline-offset:5px}
.proj-main{flex:1;padding:22px 5% 3rem;min-width:0}
.gallery{position:relative;background:#fff;padding:16px}
.gallery .big{position:relative;overflow:hidden}
.gallery .big .track{display:flex;transition:transform .6s ease}
.gallery .big figure{flex:0 0 100%;margin:0;aspect-ratio:5/3;background:#eee center/cover no-repeat;cursor:zoom-in}
.thumbs{display:flex;gap:6px;margin-top:16px;overflow-x:auto;scrollbar-width:thin}
.thumbs button{flex:0 0 calc((100% - 12px)/3);aspect-ratio:4/3;border:3px solid transparent;padding:0;background:#ddd center/cover no-repeat;cursor:pointer;opacity:.6;transition:.2s}
.thumbs button.on{border-color:var(--taupe);opacity:1}
.case-intro{display:flex;gap:4%;align-items:flex-end;padding:2.4rem 1rem 2rem}
.case-intro .t{flex:0 0 38%}
.case-intro h1{font-size:1.8rem;font-weight:600;color:var(--dark)}
.case-intro .cat{color:var(--taupe);font-size:1.05rem;font-weight:600;margin-top:.3rem}
.case-intro .d{flex:1;line-height:1.9;font-size:.98rem}
.case-meta{display:flex;flex-wrap:wrap;gap:8px;margin:0 1rem 1.6rem}
.case-meta span{background:#fff;border:1px solid var(--line);padding:.25rem .8rem;font-size:.82rem;color:#555}
.pager{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:1rem .6rem;margin:0 0 2rem}
.pager a:hover{color:var(--taupe)}
.pager span b{font-weight:600}.pager span i{font-style:normal;color:#bbb}
.case-cta{background:#fff;padding:1.6rem;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem}
.case-cta p{margin:0;color:var(--dark)}
.btn{display:inline-block;padding:.7rem 1.8rem;background:var(--dark);color:#fff;letter-spacing:.1em}
.btn:hover{background:var(--taupe)}
.btn.line{background:#06c755}

/* case listing */
.case-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;padding-bottom:4rem}
.filter{display:flex;justify-content:center;gap:.6rem;margin-bottom:2rem;flex-wrap:wrap}
.filter button{border:1px solid var(--taupe);background:none;color:var(--taupe);padding:.4rem 1.3rem;cursor:pointer;font:inherit}
.filter button.on,.filter button:hover{background:var(--taupe);color:#fff}
.ccard{display:block;background:#fff}
.ccard .ph{aspect-ratio:4/3;overflow:hidden}
.ccard .ph div{width:100%;height:100%;background:#ddd center/cover no-repeat;transition:transform .7s}
.ccard:hover .ph div{transform:scale(1.06)}
.ccard .tx{padding:1rem 1.2rem 1.2rem}
.ccard h2{font-size:1.1rem;color:var(--dark)}
.ccard small{color:var(--taupe)}

/* article */
.article{width:min(860px,92%);margin:0 auto 4rem;background:#fff;padding:3rem 6%}
.article .date{color:var(--taupe);font-size:.85rem;letter-spacing:.1em}
.article h1{font-size:1.6rem;color:var(--dark);margin:.4rem 0 1.8rem;line-height:1.5}
.article .body{line-height:2;font-size:1rem}
.article .body img{margin:1.4rem auto}
.article .body h2,.article .body h3,.article .body h4{color:var(--dark);margin:1.8rem 0 .8rem;font-weight:600}
.article .body a{color:#8a7c6c;text-decoration:underline;word-break:break-all}
.article .body table{border-collapse:collapse;width:100%;margin:1rem 0}
.article .body td,.article .body th{border:1px solid var(--line);padding:.5rem}
.share{display:flex;gap:.6rem;margin-top:2rem;padding-top:1.4rem;border-top:1px solid var(--line);font-size:.9rem;align-items:center}
.share a{border:1px solid var(--line);padding:.3rem .9rem}
.share a:hover{border-color:var(--taupe);color:var(--taupe)}
.related{width:min(1100px,92%);margin:0 auto 4rem}
.related h2{font-size:1.2rem;color:var(--dark);margin-bottom:1rem}
.related .grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.alist{width:min(1200px,92%);margin:0 auto 4rem;display:grid;grid-template-columns:repeat(3,1fr);gap:26px}

/* faq */
.faq{width:min(960px,92%);margin:0 auto 4rem}
.faq details{background:#fff;margin-bottom:10px;border-left:3px solid var(--taupe)}
.faq summary{list-style:none;cursor:pointer;padding:1.1rem 3rem 1.1rem 1.4rem;position:relative;font-weight:600;color:var(--dark)}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";position:absolute;right:1.3rem;top:50%;transform:translateY(-50%);font-size:1.5rem;color:var(--taupe);font-weight:400}
.faq details[open] summary::after{content:"−"}
.faq .a{padding:0 1.4rem 1.4rem;line-height:1.95;color:#333}
.faq .a h3,.faq .a h4{font-size:1rem;margin:1rem 0 .4rem;color:var(--dark)}

/* lightbox */
.lb{position:fixed;inset:0;background:rgba(0,0,0,.9);z-index:2000;display:none;align-items:center;justify-content:center}
.lb.on{display:flex}
.lb img{max-width:92vw;max-height:88vh;width:auto}
.lb button{position:absolute;background:none;border:0;color:#fff;font-size:2.4rem;cursor:pointer;padding:1rem}
.lb .x{top:0;right:0}.lb .p{left:0;top:50%;transform:translateY(-50%)}.lb .n{right:0;top:50%;transform:translateY(-50%)}

/* ---------- responsive ---------- */
@media (max-width:1100px){
  .nav a{padding:6px 14px}
  .band .side{flex-basis:34%}
}
@media (max-width:900px){
  :root{--hh:64px}
  .site-header,.home .site-header{background:var(--dark);height:var(--hh)}
  .logo img{height:40px}
  .nav-toggle{display:block}
  .nav{position:fixed;top:var(--hh);left:0;right:0;background:rgba(57,59,54,.98);max-height:0;overflow:hidden;transition:max-height .4s}
  .nav-open .nav{max-height:520px}
  .nav ul{flex-direction:column;padding:.6rem 0 1.2rem}
  .nav a{padding:.8rem 6%;text-align:left}
  .nav a span{flex-direction:row;justify-content:space-between}
  .nav a em{position:static;opacity:1;font-size:.8rem}
  .nav a:hover b{opacity:1}
  .hero{height:72vh;min-height:420px;margin-top:var(--hh)}
  .hero-text h1{font-size:1rem}
  .about,.contact{flex-direction:column;padding:12% 6%}
  .about .txt{padding:0}
  .about .pic,.contact .pic{flex:none;width:100%;margin-top:2rem}
  .spaces{flex-direction:column;gap:16px}
  .space>img{aspect-ratio:16/10}
  .band{flex-direction:column;min-height:0;margin-bottom:12%}
  .band .side{padding:10% 6% 2rem}
  .band .side h2.case-name{font-size:1.8rem}
  .band .stage{margin:0 6% -8%}
  .band .stage .box{padding:12px}
  .arrow.prev{left:4px}.arrow.next{right:4px}
  .articles-strip{padding-top:6%}
  .articles-strip .grid,.alist,.case-grid,.related .grid{grid-template-columns:1fr 1fr;gap:14px}
  .steps{grid-template-columns:1fr 1fr}
  .step{border-left:0!important;border-top:1px solid var(--line)}
  .step:nth-child(-n+2){border-top:0}
  .step:nth-child(odd){border-right:1px solid var(--line)!important}
  .projects-wrap{flex-direction:column}
  .proj-nav{flex:none;padding:1rem 0 .6rem}
  .proj-nav .jr-title{display:flex;align-items:center;justify-content:center;gap:.8rem;padding-bottom:.6rem}
  .proj-nav .jr-title .h3{margin:0;font-size:1.05rem}
  .proj-nav ul{display:flex;overflow-x:auto;padding:0 .6rem;scrollbar-width:none}
  .proj-nav li a{white-space:nowrap}
  .proj-main{padding:14px 4% 2rem}
  .case-intro{flex-direction:column;align-items:flex-start;gap:1rem;padding:1.6rem .2rem}
  .article{padding:2rem 6%}
  body{padding-bottom:44px}
  .float-icons{top:auto;bottom:0;left:0;right:0;transform:none;flex-direction:row;gap:0}
  .float-icons a,.float-icons a:hover{flex:1;width:auto;height:44px;border-radius:0;justify-content:center;box-shadow:none;font-size:12px}
  .float-icons a img{order:0;width:30px;height:30px;flex-basis:30px;padding:5px}
  .float-icons a span{padding-left:2px}
}
@media (max-width:560px){
  .articles-strip .grid,.alist,.case-grid,.related .grid{grid-template-columns:1fr}
  .step{padding:1.2rem .9rem}
  .step .no b{font-size:1.8rem}.step .no img{width:34px;height:34px}
  .cform .row{flex-direction:column}
  .thumbs button{flex-basis:calc((100% - 12px)/3.4)}
  .gallery{padding:8px}
  .hero-text{top:50%}
  .page-head{padding:2rem 1rem 1.4rem}
}
