/* สร้างจาก "Wolffia Plus · หน้าแรก (พรีวิว)/reviews.html" (พ.ย. 2569) — ธีม Next */

/* หน้าผลงาน — tokens เดียวกับหน้า Service / section บริการหน้าแรก */
/* top of this page: navbar spacer + breadcrumb sit on the same off-white as the hero (page wrapper was white) */
[data-dc-tpl="6"]{background-color:#F7FAF4 !important;}
/* navbar on this page: softer border + ~25% lighter shadow (background, radius, logo, menu and CTAs unchanged) */
nav[data-wp-nav]{border-color:#E5EBE2 !important;box-shadow:0 10px 28px rgba(15,46,26,.075),0 2px 6px rgba(15,46,26,.0375) !important;}
nav[data-wp-nav].is-scrolled{box-shadow:0 14px 34px rgba(15,46,26,.12),0 2px 8px rgba(15,46,26,.06) !important;}
.rv-sec{--rv-green-900:#1E4A2E;--rv-green-700:#2F6B3D;--rv-green-100:#EAF1E4;--rv-line:#E3EADC;--rv-muted:#5A6457;--rv-on-dark:#D7E8C8;
  --rv-bg:#F7FAF4;--rv-bg-alt:#EEF4E8;--rv-gap:24px;
  background:var(--rv-bg);padding:clamp(48px,6vw,80px) clamp(20px,5vw,56px);scroll-margin-top:100px;color:#333333;}
.rv-alt{background:var(--rv-bg-alt);}
.rv-sec:not(.rv-alt) + .rv-sec:not(.rv-alt){padding-top:0;}
.rv-sec *{box-sizing:border-box;}
.rv-sec h1,.rv-sec h2,.rv-sec h3,.rv-sec h4,.rv-sec p,.rv-sec ol,.rv-sec dl,.rv-sec dd,.rv-sec figure,.rv-sec blockquote{margin:0;}
.rv-in{max-width:1200px;margin:0 auto;}
.rv-head{display:flex;flex-direction:column;gap:8px;margin-bottom:clamp(28px,3vw,40px);}
.rv-eyebrow{font-family:'Kanit',sans-serif;font-weight:700;font-size:14px;letter-spacing:.06em;color:var(--rv-green-700);}
.rv-h2{font-family:'Kanit',sans-serif;font-weight:800;font-size:clamp(26px,3vw,36px);line-height:1.3;color:var(--rv-green-900);text-wrap:balance;}
.rv-head-desc{max-width:62ch;}
.rv-sec h3{font-family:'Kanit',sans-serif;font-weight:700;font-size:clamp(20px,1.7vw,24px);line-height:1.35;color:var(--rv-green-900);}
.rv-sec p{font-size:16px;line-height:1.7;color:var(--rv-muted);}
.rv-sec a:focus-visible{outline:3px solid #8CAA5E;outline-offset:3px;border-radius:12px;}
.rv-cat{font-family:'Kanit',sans-serif;font-weight:600;font-size:14px;color:var(--rv-green-700);}
.rv-loc{display:inline-flex;align-items:center;gap:6px;font-size:15px !important;font-weight:500;color:var(--rv-green-900) !important;}
.rv-loc svg{color:var(--rv-green-700);flex-shrink:0;}
.rv-link{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-family:'Kanit',sans-serif;font-weight:600;font-size:16px;color:var(--rv-green-700);text-decoration:none;}
.rv-link:hover{color:var(--rv-green-900);text-decoration:underline;text-underline-offset:4px;}

/* 1 hero: text only, left aligned */
.rv-hero{padding-bottom:clamp(48px,5vw,64px);}
.rv-hero-text{max-width:900px;display:flex;flex-direction:column;}
.rv-h1{margin-top:16px !important;font-family:'Kanit',sans-serif;font-weight:800;font-size:clamp(30px,2.6vw + 10px,48px);line-height:1.2;color:var(--rv-green-900);text-wrap:balance;}
.rv-hero-desc{margin-top:22px !important;font-size:17px !important;max-width:68ch;}

/* 2 featured project: image 55% | content 45% */
.rv-feature{display:grid;grid-template-columns:minmax(0,55fr) minmax(0,45fr);column-gap:clamp(28px,3vw,40px);align-items:center;}
.rv-feature-media{aspect-ratio:4/3;border-radius:20px;overflow:hidden;min-height:0;background:var(--rv-green-100);}
.rv-feature-media img{display:block;width:100%;height:100%;object-fit:cover;object-position:55% center;}
.rv-feature-body{display:flex;flex-direction:column;gap:12px;min-width:0;}
.rv-feature-name{font-size:clamp(22px,2vw,28px) !important;}
.rv-facts{display:flex;flex-direction:column;gap:10px;padding:16px 18px;border-radius:16px;background:#FFFFFF;border:1px solid var(--rv-line);}
.rv-facts dt{font-family:'Kanit',sans-serif;font-weight:600;font-size:14px;color:var(--rv-green-700);}
.rv-facts dd{font-size:15.5px;line-height:1.6;color:#333333;}
/* evidence: whole document (contain), opens the full file */
.rv-evidence{display:grid;grid-template-columns:72px minmax(0,1fr);gap:14px;align-items:center;padding:12px;border-radius:16px;border:1px solid var(--rv-line);background:#FFFFFF;text-decoration:none;color:inherit;transition:border-color .2s ease;}
.rv-evidence:hover{border-color:var(--rv-green-700);color:inherit;}
.rv-evidence-thumb{display:block;aspect-ratio:700/881;border-radius:8px;overflow:hidden;background:#F1F4EC;border:1px solid var(--rv-line);}
.rv-evidence-thumb img{display:block;width:100%;height:100%;object-fit:contain;}
.rv-evidence-text{display:flex;flex-direction:column;gap:2px;font-size:13.5px;line-height:1.5;color:var(--rv-muted);}
.rv-evidence-text strong{font-family:'Kanit',sans-serif;font-size:15px;font-weight:600;color:var(--rv-green-900);}
.rv-evidence-more{display:inline-flex;align-items:center;gap:6px;margin-top:4px;font-family:'Kanit',sans-serif;font-weight:600;font-size:14px;color:var(--rv-green-700);}
.rv-feature-links{display:flex;flex-wrap:wrap;gap:4px 24px;}

/* 3 project cards (text cards until real photos arrive; a <figure class="rv-card-media"> can be added as the first child) */
.rv-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:var(--rv-gap);}
.rv-card{display:flex;flex-direction:column;gap:10px;padding:24px;background:#FFFFFF;border:1px solid var(--rv-line);border-radius:20px;overflow:hidden;scroll-margin-top:110px;}
/* card with a real photo: <article class="rv-card rv-card-has-media"><figure class="rv-card-media">…</figure><div class="rv-card-body">…</div></article> */
.rv-card-has-media{padding:0;}
.rv-card-media{aspect-ratio:16/10;overflow:hidden;min-height:0;}
.rv-card-media img{display:block;width:100%;height:100%;object-fit:cover;}
.rv-card-body{flex:1;display:flex;flex-direction:column;gap:10px;padding:24px;}
.rv-card-top{display:flex;align-items:center;gap:12px;margin-bottom:4px;}
.rv-card-ic{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;border-radius:12px;background:var(--rv-green-100);color:var(--rv-green-900);}
.rv-scope{padding-top:12px;border-top:1px solid var(--rv-line);}
.rv-scope h4{font-family:'Kanit',sans-serif;font-weight:600;font-size:15px;color:var(--rv-green-900);margin-bottom:6px;}
.rv-scope ol{padding-left:20px;display:flex;flex-direction:column;gap:4px;font-size:15.5px;line-height:1.6;color:#333333;}
.rv-card-link{margin-top:auto;align-self:flex-start;}

/* 4 behind the work: 1 large + 4 small */
.rv-gallery{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;}
.rv-shot{position:relative;aspect-ratio:16/9;border-radius:18px;overflow:hidden;min-height:0;background:var(--rv-green-100);}
.rv-shot-main{grid-row:span 2;aspect-ratio:auto;}
.rv-shot img{display:block;width:100%;height:100%;object-fit:cover;}
.rv-shot figcaption{position:absolute;left:10px;bottom:10px;max-width:calc(100% - 20px);padding:4px 10px;border-radius:999px;background:rgba(17,40,25,.78);color:#FFFFFF;font-family:'Kanit',sans-serif;font-weight:500;font-size:13px;line-height:1.35;}
.rv-shot-main figcaption{left:14px;bottom:14px;font-size:14px;padding:5px 12px;}

/* 5 reviews (component only — shown when real, approved reviews exist) */
.rv-reviews{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:var(--rv-gap);}
.rv-review{display:flex;flex-direction:column;gap:14px;padding:24px;background:#FFFFFF;border:1px solid var(--rv-line);border-radius:20px;}
.rv-review blockquote p{font-size:17px;color:#333333;}
.rv-review figcaption{display:flex;flex-direction:column;gap:2px;font-size:14px;color:var(--rv-muted);}
.rv-review figcaption strong{font-family:'Kanit',sans-serif;font-size:16px;color:var(--rv-green-900);}

/* 6 final CTA: text 65% | button 35% */
.rv-cta{display:grid;grid-template-columns:minmax(0,65fr) minmax(0,35fr);column-gap:clamp(24px,3.5vw,48px);align-items:center;padding:clamp(24px,4vw,48px);border-radius:28px;background:var(--rv-green-900);}
.rv-cta-text{display:flex;flex-direction:column;gap:12px;}
.rv-cta .rv-h2{color:#FFFFFF;}
.rv-cta p{color:var(--rv-on-dark);}
.rv-cta-btn{justify-self:end;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:56px;padding:0 30px;border-radius:999px;background:#E4F8C7;color:#174D32;font-family:'Kanit',sans-serif;font-weight:700;font-size:18px;text-decoration:none;white-space:nowrap;transition:background .2s ease;}
.rv-cta-btn:hover{background:#D3F0A8;color:#174D32;}
.rv-cta .rv-cta-btn:focus-visible{outline-color:#C8F08F;}

@media (max-width:899px){
  .rv-feature{grid-template-columns:minmax(0,1fr);row-gap:24px;}
  .rv-feature-media{aspect-ratio:16/10;}
  .rv-gallery{grid-template-columns:repeat(2,minmax(0,1fr));}
  .rv-shot-main{grid-column:1 / -1;grid-row:auto;aspect-ratio:16/9;}
  .rv-cta{grid-template-columns:minmax(0,1fr);row-gap:22px;}
  .rv-cta-btn{justify-self:start;}
}
@media (max-width:639px){
  .rv-sec{--rv-gap:16px;}
  .rv-card,.rv-review{padding:20px;}
  .rv-card-has-media{padding:0;}
  .rv-card-body{padding:20px;}
  .rv-evidence{grid-template-columns:60px minmax(0,1fr);}
  .rv-shot:not(.rv-shot-main) figcaption{left:8px;bottom:8px;font-size:13px;padding:3px 8px;}
  .rv-cta{border-radius:24px;padding:24px;}
  .rv-cta-btn{justify-self:stretch;white-space:normal;}
}
@media (prefers-reduced-motion:reduce){.rv-evidence,.rv-cta-btn{transition:none;}}

