/*
Theme Name: OUNIDI Interiors
Description: OUNIDI Interiors showroom and inquiries website.
Version: 1.5.0
Requires PHP: 8.0
*/
:root{--paper:#f7f3eb;--ink:#241d18;--soft:#665b50;--wood:#3b2c22;--border:#d9cec0;--white:#fffaf1;--gutter:clamp(22px,6vw,98px)}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--paper);color:var(--ink);font-family:system-ui,sans-serif;font-size:16px;line-height:1.65}
h1,h2,h3{font-family:Georgia,"Times New Roman",serif;font-weight:400;line-height:1.03;letter-spacing:-.04em;margin:0}
:lang(th) h1,:lang(th) h2,:lang(th) h3{font-family:system-ui,sans-serif;letter-spacing:normal;line-height:1.24}
h1{font-size:clamp(44px,6.3vw,102px)}
h2{font-size:clamp(34px,4.4vw,67px);max-width:20ch}
h3{font-size:clamp(26px,2.8vw,43px)}
p{margin:.8em 0 1em}
a{color:inherit}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid #a16538;outline-offset:4px}
button,input,select,textarea{font:inherit}
button,summary{cursor:pointer}
.wrap{width:min(100%,1540px);margin-inline:auto;padding-inline:var(--gutter)}
.section{padding-block:clamp(54px,8vw,125px)}
.eyebrow{font-size:.7rem;text-transform:uppercase;font-weight:650;letter-spacing:.16em}
.measure{max-width:72ch}
.skip{position:absolute;top:0;left:0;z-index:9;background:var(--paper);padding:.6rem 1rem;transform:translateY(-140%)}
.skip:focus{transform:translateY(0)}
.masthead{position:relative;display:flex;align-items:center;gap:clamp(15px,2.5vw,36px);min-height:80px;padding:14px var(--gutter);background:var(--paper);z-index:3}
.wordmark{display:block;flex:none;width:clamp(154px,15vw,195px);text-decoration:none}
.wordmark img{display:block;width:100%;height:auto}
.masthead nav{display:flex;gap:clamp(10px,2vw,27px);align-items:center;margin-left:auto}
.masthead nav a,.language summary,.menu-toggle{font-size:.83rem;text-decoration:none;font-weight:550}
.masthead nav a:hover,.masthead nav a[aria-current]{text-decoration:underline;text-underline-offset:.3em}
.language{position:relative;flex:none}
.language summary{padding:8px 0}
.language ul{list-style:none;position:absolute;right:0;top:100%;background:var(--paper);border:1px solid var(--border);min-width:155px;padding:8px;margin:0}
.language li a{display:block;padding:7px;text-decoration:none}
.language a:hover,.language a[aria-current]{background:#ebe2d5}
.button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:9px 20px;background:var(--wood);color:var(--white);border:1px solid var(--wood);text-decoration:none;text-align:center;font-size:.87rem;font-weight:650}
.button:hover{background:#5a4333}
.button.light{background:var(--white);color:var(--ink);border-color:var(--white)}
.button.light:hover{background:#e9ddcb}
.button.compact{min-height:40px;flex:none;font-size:.77rem}
.line-link{display:inline-block;text-underline-offset:.36em;font-size:.9rem;font-weight:620}
.menu-toggle{background:transparent;border:1px solid var(--border);color:var(--ink);padding:6px 9px}
.region-suggestion{display:flex;justify-content:center;align-items:center;gap:12px;padding:5px var(--gutter);background:#e6dac8}
.region-suggestion button{border:0;background:transparent;font-size:1.5rem}
.hero{position:relative;min-height:clamp(550px,74vh,850px);display:grid;align-items:end;color:var(--white);isolation:isolate;background:#3a2d23}
.scene{display:block;width:100%;height:auto}
.hero .scene,.hero::after{position:absolute;inset:0;width:100%;height:100%;z-index:-1}
.hero .scene{object-fit:cover;object-position:center}
.hero::after{content:"";background:linear-gradient(90deg,rgba(22,16,12,.78),rgba(22,16,12,.43) 49%,rgba(22,16,12,.08) 100%),linear-gradient(0deg,rgba(22,16,12,.4),transparent 32%);pointer-events:none}
.hero-copy{padding:65px var(--gutter) 85px}
.hero h1{max-width:13ch}
.hero :lang(th) h1{max-width:22ch}
.hero-copy>p:not(.eyebrow){max-width:54ch;margin-top:1.5rem}
.actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px 26px;margin-top:26px}
.hero-credit{position:absolute;right:var(--gutter);bottom:16px;padding:3px 8px;background:#221810b5}
.page-intro{padding-block:clamp(45px,7vw,100px) clamp(30px,4vw,65px)}
.page-intro h1{font-size:clamp(42px,5.6vw,81px)}
.concept-grid,.two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(18px,4vw,55px)}
.concept-grid{margin-block:28px}
.concept-grid figure{margin:0}
.concept-grid figure img{aspect-ratio:3/2;object-fit:cover}
.concept-grid figcaption .eyebrow{margin-block:1.25em .75em;color:var(--soft)}
.concept-grid figcaption p:last-child,.product-grid p{color:var(--soft)}
.pathways{background:#eae0d2}
.pathways h2{margin-bottom:32px}
.pathways article{border-top:1px solid #a59581;padding-top:24px}
.pathways article p{max-width:54ch}
.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;margin-top:24px}
.product-grid article{border-top:1px solid var(--border);padding:20px 6px 4px 0}
.product-grid h3{font-size:clamp(25px,2.4vw,36px)}
.process{background:#ece3d6}
.process ol{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 35px;padding-left:20px;margin-top:30px}
.service-note{margin-top:30px;max-width:72ch;color:var(--soft)}
.contact-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.7fr);gap:clamp(24px,6vw,85px);padding-bottom:clamp(60px,8vw,120px)}
.contact-layout h2{font-size:clamp(28px,3.5vw,54px)}
.inquiry-form{background:#fffaf2;border:1px solid var(--border);padding:clamp(17px,4vw,42px);display:grid;gap:17px}
.inquiry-form label{display:block;font-weight:550;font-size:.89rem}
.fields{gap:15px}
.inquiry-form input:not([type=checkbox]),.inquiry-form textarea,.inquiry-form select{display:block;width:100%;border:1px solid #b9ad9c;background:#ffffff;color:var(--ink);padding:8px 10px;border-radius:0;margin-top:4px}
.inquiry-form fieldset{margin:0;border:1px solid var(--border);min-width:0;padding:10px 12px}
.inquiry-form .consent{display:flex;gap:8px;align-items:flex-start;font-weight:400}
.consent input{margin-top:.4em}
.inquiry-form .button{justify-self:start}
.trap{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.notice{background:#e9eddf;padding:14px 17px}
.notice.error{background:#f2ded6}
.editable{padding-block:26px 70px}
.next-step,.footer{background:#30251d;color:var(--white)}
.next-step .wrap{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:24px;padding-block:clamp(38px,6vw,76px)}
.footer .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:22px;padding-block:28px;border-top:1px solid #6b5746}
.footer nav{display:flex;flex-wrap:wrap;gap:8px 18px}
.footer a{font-size:.82rem;text-underline-offset:.3em}
@media(max-width:1020px){
    .masthead{flex-wrap:wrap;gap:10px 18px}
    .masthead nav{order:5;width:100%;margin:0;flex-wrap:wrap;padding:8px 0}
    .masthead .language{margin-left:auto}
    .masthead.is-enhanced nav:not(.open){display:none}
}
@media(max-width:680px){
    .masthead .mast-cta{display:none}
    .masthead .language{margin-left:0}
    .masthead .menu-toggle{margin-left:auto}
    .masthead:not(.is-enhanced) .language{margin-left:auto}
    .masthead{min-height:66px}
    .hero{min-height:575px}
    .hero-copy{padding-block:58px 70px}
    .hero::after{background:linear-gradient(0deg,rgba(22,16,12,.86),rgba(22,16,12,.40) 70%,rgba(22,16,12,.22))}
    .concept-grid,.contact-layout,.two-col:not(.fields){grid-template-columns:1fr}
    .product-grid,.process ol{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:390px){.fields{grid-template-columns:1fr}}
.interior-intro.has-image{display:grid;grid-template-columns:1fr 1.15fr;gap:clamp(24px,5vw,75px);align-items:center;padding-block:clamp(24px,5vw,70px)}
.interior-image,.photo-story figure{margin:0}
.interior-image .scene{aspect-ratio:3/2;object-fit:cover}
.interior-image figcaption,.photo-story figcaption{color:var(--soft);padding-top:8px;font-size:.82rem}
.photo-story{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(18px,3vw,45px)}
.photo-story figure:first-child{grid-column:1/-1}
.photo-story img{aspect-ratio:3/2;object-fit:cover}
.photo-story figure:first-child img{aspect-ratio:16/8.75}
.photo-story figcaption span{color:var(--soft)}
.card-image{display:block;overflow:hidden;background:#e5d9ca}
.card-image img{aspect-ratio:3/2;object-fit:cover;transition:transform .45s ease}
.card-image:hover img,.detail-card a:hover img{transform:scale(1.025)}
.pathways .card-image,.product-grid .card-image{margin-bottom:18px}
.product-grid h3 a{text-decoration:none}
.product-grid h3 a:hover{text-decoration:underline;text-underline-offset:.17em}
.detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:clamp(16px,3vw,45px);margin-top:26px}
.detail-card a{display:block;text-decoration:none}
.detail-card h3{margin:13px 0 9px}
.detail-card .line-link{text-decoration:underline}
.detail-card:only-child{max-width:670px}
.interior-intro.has-image+.section{padding-top:clamp(28px,4vw,60px)}
.interior-intro.has-image+.contact-layout{padding-top:25px}
[dir=rtl] h1,[dir=rtl] h2,[dir=rtl] h3{font-family:Tahoma,Arial,sans-serif;letter-spacing:0;line-height:1.28;font-weight:550}
[dir=rtl] h1{font-size:clamp(35px,5vw,72px)}
[dir=rtl] .hero h1{max-width:19ch}
[dir=rtl] .hero::after{background:linear-gradient(270deg,rgba(22,16,12,.81),rgba(22,16,12,.48) 53%,rgba(22,16,12,.12))}
[dir=rtl] .eyebrow{letter-spacing:0}
.masthead nav{margin-left:0;margin-inline-start:auto}
.language ul{right:auto;inset-inline-end:0}
.hero-credit{right:auto;inset-inline-end:var(--gutter)}
.process ol{padding-left:0;padding-inline-start:20px}
.inquiry-form input[type=tel]{direction:ltr}
@media(max-width:1020px){.masthead nav{margin-inline-start:0}.masthead .language{margin-left:0;margin-inline-start:auto}}
@media(max-width:680px){
 .interior-intro.has-image,.photo-story{grid-template-columns:1fr}
 .interior-intro.has-image .page-intro{padding-block:20px 0}
 .photo-story figure:first-child img{aspect-ratio:3/2}
 [dir=rtl] .hero::after{background:linear-gradient(0deg,rgba(22,16,12,.86),rgba(22,16,12,.40) 70%,rgba(22,16,12,.22))}
 .masthead .language{margin-inline-start:0}
 .masthead .menu-toggle{margin-left:0;margin-inline-start:auto}
 .masthead:not(.is-enhanced) .language{margin-left:0;margin-inline-start:auto}
}
@media(prefers-reduced-motion:reduce){.card-image img{transition:none}}

.country-search{margin-block:7px 8px}
.inquiry-form .country-search label{font-weight:400;color:var(--soft)}
.country-results{margin:.4em 0;color:var(--soft);font-size:.8rem}
.country-field{min-width:0}
:lang(zh) h1,:lang(zh) h2,:lang(zh) h3{font-family:"PingFang TC","Microsoft JhengHei",system-ui,sans-serif;letter-spacing:0;line-height:1.25}
:lang(zh) .hero h1{font-size:clamp(38px,5.3vw,76px);max-width:16ch}

.procurement-hero{min-height:clamp(620px,78vh,910px)}
.hero-slides{position:absolute;inset:0;z-index:-2;overflow:hidden;direction:ltr}
.hero-track{display:flex;width:100%;height:100%;transition:transform .7s ease}
.hero-slide{position:relative;flex:0 0 100%;min-width:0;height:100%;isolation:isolate}
.hero-slide .scene{z-index:0}
.procurement-hero .hero-copy{padding-block:48px 116px}
.procurement-hero h1{font-size:clamp(44px,5.5vw,84px);max-width:18ch}
:lang(zh) .procurement-hero h1{font-size:clamp(37px,4.8vw,74px);max-width:18ch}
.procurement-hero .designer-pledge{margin-block:18px 0;font-weight:600}
.hero-rail{position:absolute;inset-inline:var(--gutter);bottom:23px;display:flex;justify-content:space-between;align-items:center;gap:8px 20px;padding-top:12px;border-top:1px solid #fff8}
.slide-caption{font-size:.8rem}
.slide-controls{display:flex;gap:6px;align-items:center;direction:ltr}
.slide-controls button{border:1px solid #fff9;color:var(--white);background:#271c15b8;min-width:40px;min-height:40px;padding:6px 10px}
.slide-controls button:hover{background:var(--wood)}
.slide-count{padding-inline:6px;font-size:.8rem;white-space:nowrap}
.slide-play{font-size:.75rem;white-space:nowrap}
.style-gallery .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.style-gallery .style-index-link{margin-top:28px}
.photo-story:has(figure:nth-child(2):last-child) figure:first-child{grid-column:auto}
.photo-story:has(figure:nth-child(2):last-child) figure:first-child img{aspect-ratio:3/2}
@media(max-width:680px){
 .procurement-hero{min-height:640px}
 .procurement-hero .hero-copy{padding-block:48px 148px}
 .procurement-hero h1{font-size:clamp(37px,9vw,51px)}
 .hero-rail{align-items:flex-start;flex-direction:column}
 .slide-caption{min-height:20px}
 .style-gallery .detail-grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){.hero-track{transition:none}}
