/* ===== CCR Site — chuengcharoen.com ===== */
:root{
  --ccr-ink:#1A1A1A; --ccr-ink2:#4A4A4A; --ccr-muted:#6B6B6B;
  --ccr-line:#EAEAE7; --ccr-alt:#F6F6F4; --ccr-ph:#E8E7E3;
  --ccr-yellow:#F6CB18;
  --ccr-font:'IBM Plex Sans Thai',system-ui,sans-serif; --ccr-latin:'Inter',system-ui,sans-serif;
}

/* hide Astra chrome, we render our own */
body.ccr #masthead, body.ccr .site-footer, body.ccr .ast-scroll-top-icon{display:none!important}
body.ccr{font-family:var(--ccr-font);color:var(--ccr-ink);background:#fff;font-size:16px;line-height:1.65;font-weight:400}
body.ccr h1,body.ccr h2,body.ccr h3,body.ccr h4{font-family:var(--ccr-font);color:var(--ccr-ink);font-weight:500;letter-spacing:-.3px;line-height:1.3}
body.ccr a{color:var(--ccr-ink);text-decoration:none}
body.ccr a:hover{color:var(--ccr-muted)}
body.ccr .site-content > .ast-container{max-width:100%;padding:0}
body.ccr.page .site-content .ast-container, body.ccr.home .site-content .ast-container{display:block}
body.ccr.page .entry-content > .ccr-page, body.ccr .entry-content > .wp-block-html{margin:0}
body.ccr.page #primary, body.ccr.home #primary{margin:0;padding:0}
body.ccr.page .ast-article-single, body.ccr.page article.page{padding:0!important;margin:0!important;background:transparent}

.ccr-wrap{max-width:1240px;margin:0 auto;padding:0 32px;box-sizing:border-box}
.ccr-lbl{font-family:var(--ccr-latin);font-size:12px;letter-spacing:2px;color:var(--ccr-muted);text-transform:uppercase;margin:0 0 10px;font-weight:400}
body.ccr h2.ccr-lbl,.ccr-sec h2.ccr-lbl{font-size:12px;letter-spacing:2px;margin:0 0 28px;font-weight:400;font-family:var(--ccr-latin);color:var(--ccr-muted)}
.ccr-lbl--dot{display:flex;align-items:center;gap:14px}
.ccr-lbl--dot::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--ccr-yellow);flex:none}
.ccr-lead{font-size:18px;font-weight:300;color:var(--ccr-ink2);max-width:620px}
.ccr-muted{color:var(--ccr-muted)}
.ccr-num{display:inline-block;font-family:var(--ccr-latin);font-size:13px;color:var(--ccr-muted);border-top:3px solid var(--ccr-yellow);padding-top:14px;min-width:48px}
.ccr-link{border-bottom:2px solid var(--ccr-yellow);padding-bottom:3px;font-weight:500}

body.ccr h1,body.ccr h2,body.ccr h3{text-wrap:balance}
@media (min-width:922px){.ccr-nw{white-space:nowrap}}
.ccr-form .wpcf7-form-control-wrap{display:block;width:100%}
.ccr-form br{display:none}
/* buttons */
.ccr-btn, body.ccr .wpcf7-submit{display:inline-flex;align-items:center;justify-content:center;min-height:48px;background:var(--ccr-ink);color:#fff!important;padding:0 26px;font:500 16px/1 var(--ccr-font);border:1px solid var(--ccr-ink);border-radius:0;cursor:pointer;transition:background .2s}
.ccr-btn:hover, body.ccr .wpcf7-submit:hover{background:#000;color:#fff!important}
.ccr-btn--ghost{background:transparent;color:var(--ccr-ink)!important;border-color:#D6D6D2}
.ccr-btn--ghost:hover{background:var(--ccr-alt);color:var(--ccr-ink)!important}
.ccr-btn--line{background:transparent;color:var(--ccr-ink)!important;min-height:40px;padding:0 16px;font-size:14px}
.ccr-btn--line:hover{background:var(--ccr-ink);color:#fff!important}
.ccr-btns{display:flex;flex-wrap:wrap;gap:12px}

/* header */
.ccr-header{border-bottom:1px solid var(--ccr-line);background:#fff;position:sticky;top:0;z-index:100}
.admin-bar .ccr-header{top:32px}
.ccr-header__in{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:76px}
.ccr-brand{display:flex;align-items:center;gap:12px}
.ccr-brand img{height:34px;width:auto;display:block}
.ccr-brand__txt{display:flex;flex-direction:column;line-height:1.15}
.ccr-brand__th{font-weight:600;font-size:16px;color:var(--ccr-ink)}
.ccr-brand__en{font-family:var(--ccr-latin);font-size:10px;letter-spacing:2.5px;color:var(--ccr-muted)}
.ccr-nav{display:flex;align-items:center;gap:30px;font-size:15px}
.ccr-nav > a{padding:6px 0;border-bottom:2px solid transparent}
.ccr-nav > a[aria-current="page"]{border-bottom-color:var(--ccr-yellow)}
.ccr-nav__side{display:flex;align-items:center;gap:20px;margin-left:12px}
.ccr-nav > a.ccr-nav__hl{background:var(--ccr-yellow);color:var(--ccr-ink)!important;font-weight:600;padding:8px 16px;border-bottom:0;transition:background .2s}
.ccr-nav > a.ccr-nav__hl:hover{background:#E8BD0A}
.ccr-nav > a.ccr-nav__hl[aria-current="page"]{box-shadow:inset 0 -2px 0 var(--ccr-ink)}
.ccr-lang{font-family:var(--ccr-latin);font-size:13px;color:var(--ccr-muted)}
.ccr-lang b{color:var(--ccr-ink);font-weight:500}
.ccr-lang a{color:var(--ccr-muted)!important}
.ccr-burger{display:none;width:44px;height:44px;border:0;background:transparent;padding:10px;cursor:pointer;flex-direction:column;justify-content:center;gap:5px}
.ccr-burger span{display:block;height:2px;background:var(--ccr-ink);width:22px}

/* hero */
.ccr-hero{padding:88px 0 0}
.ccr-hero h1{font-size:56px;line-height:1.25;letter-spacing:-.5px;max-width:900px;margin:14px 0 0}
/* split hero (v1.0.14): text left, photo right */
.ccr-hero--split{padding:40px 0 64px}
.ccr-hero__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:56px;align-items:center}
.ccr-hero--split h1{font-size:40px;line-height:1.35;letter-spacing:-.3px;max-width:none;margin:14px 0 20px}
.ccr-hero--split .ccr-lead{margin:0 0 32px;max-width:560px}
.ccr-hero--split .ccr-hero__img{height:500px}
.ccr-hero__row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:32px;margin:32px 0 56px}
.ccr-hero__row .ccr-lead{margin:0}
.ccr-hero__img{width:100%;height:560px;object-fit:cover;display:block}

/* stats */
.ccr-stats__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;padding-top:56px;padding-bottom:56px}
.ccr-stats__grid div{border-top:3px solid var(--ccr-yellow);padding-top:16px;display:flex;flex-direction:column}
.ccr-stats__grid strong{font-size:36px;font-weight:500;line-height:1.3}
.ccr-stats__grid span{color:var(--ccr-muted);font-size:15px}

/* sections */
.ccr-sec{padding:104px 0}
.ccr-sec--tight{padding:48px 0 88px}
.ccr-sec--alt{background:var(--ccr-alt)}
.ccr-sec--top0{padding-top:24px}
.ccr-sec h2{font-size:36px;margin:0 0 40px}
.ccr-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:8px}
.ccr-pagehead{padding:80px 0 56px}
.ccr-pagehead h1{font-size:48px;line-height:1.25;margin:14px 0 18px;max-width:900px}

/* logo wall */
.ccr-logos{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));border-top:1px solid var(--ccr-line);border-left:1px solid var(--ccr-line)}
.ccr-logos li{height:104px;display:flex;align-items:center;justify-content:center;padding:18px;border-right:1px solid var(--ccr-line);border-bottom:1px solid var(--ccr-line);margin:0;background:#fff}
.ccr-logos img{max-height:64px;max-width:100%;width:auto;object-fit:contain;filter:grayscale(1);opacity:.75;transition:filter .2s,opacity .2s}
.ccr-logos li:hover img{filter:none;opacity:1}

/* projects */
.ccr-filters{display:flex;flex-wrap:wrap;gap:4px;margin:0 0 36px}
.ccr-filters button{min-height:44px;padding:0 18px;font:400 14px var(--ccr-font);border:0;border-radius:22px;background:transparent;color:var(--ccr-ink2);cursor:pointer}
.ccr-filters button.is-on{background:var(--ccr-ink);color:#fff}
.ccr-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:48px 28px}
.ccr-card{display:block}
.ccr-card[hidden]{display:none}
.ccr-card__img{aspect-ratio:4/3;background:var(--ccr-ph);overflow:hidden}
.ccr-card__img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s}
.ccr-card:hover .ccr-card__img img{transform:scale(1.03)}
.ccr-card__top{display:flex;justify-content:space-between;gap:12px;margin-top:16px}
.ccr-card__name{font-size:18px;font-weight:500;color:var(--ccr-ink)}
.ccr-card__year{font-family:var(--ccr-latin);font-size:13px;color:var(--ccr-muted);white-space:nowrap;padding-top:3px}
.ccr-card__meta{color:var(--ccr-muted);font-size:14px}
.ccr-more{margin:48px 0 0}
.ccr-ph{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:200px;background:var(--ccr-ph);color:var(--ccr-muted);font-size:13px}

/* services */
.ccr-svc{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:48px}
.ccr-svc h3{font-size:21px;margin:14px 0 10px}
.ccr-svc p{margin:0;color:var(--ccr-ink2);font-weight:300}
.ccr-products{margin:56px 0 0;padding-top:24px;border-top:1px solid var(--ccr-line);color:var(--ccr-muted);font-size:15px}
.ccr-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:64px;align-items:center;padding:40px 0}
.ccr-row--rev > div:first-child{order:2}
.ccr-row h2{font-size:30px;margin:14px 0 16px}
.ccr-row__img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}

/* split, steps */
.ccr-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:64px}
.ccr-split--mid{align-items:center}
.ccr-split h2{margin-bottom:20px}
.ccr-split__img{width:100%;height:300px;object-fit:cover;display:block;margin-top:28px}
.ccr-split__img--tall{height:460px;margin-top:0}
.ccr-steps{list-style:none;margin:0;padding:0}
.ccr-steps li{display:flex;gap:28px;padding:24px 0;border-top:1px solid #DCDCD8;margin:0}
.ccr-steps__n{font-family:var(--ccr-latin);font-size:14px;font-weight:500;min-width:28px;padding-top:3px}
.ccr-steps strong{display:block;font-weight:500;font-size:18px}
.ccr-steps li > span > span{display:block;color:var(--ccr-muted);font-size:15px;margin-top:2px}
.ccr-list{list-style:none;margin:24px 0;padding:0;font-size:15px}
.ccr-list li{padding:12px 0;border-top:1px solid var(--ccr-line);margin:0}
.ccr-list li:last-child{border-bottom:1px solid var(--ccr-line)}

/* contact + form */
.ccr-contact{margin:32px 0 0}
.ccr-contact dt{margin:0 0 2px}
.ccr-contact dd{margin:0 0 20px;font-size:15px}
.ccr-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 20px}
.ccr-form label{display:flex;flex-direction:column;gap:6px;font-size:14px;color:var(--ccr-ink2)}
.ccr-form__full{grid-column:1 / -1}
body.ccr .ccr-form input[type=text],body.ccr .ccr-form input[type=tel],body.ccr .ccr-form input[type=email],body.ccr .ccr-form select,body.ccr .ccr-form textarea{width:100%;border:0;border-bottom:1px solid #BDBDB8;border-radius:0;background:transparent;padding:10px 0;font:400 16px var(--ccr-font);color:var(--ccr-ink);box-shadow:none}
body.ccr .ccr-form input:focus,body.ccr .ccr-form select:focus,body.ccr .ccr-form textarea:focus{outline:none;border-bottom-color:var(--ccr-ink)}
body.ccr .ccr-form input[type=file]{font-size:14px;padding:8px 0}
body.ccr .wpcf7-spinner{margin:0 0 0 12px}
body.ccr .wpcf7 form .wpcf7-response-output{margin:20px 0 0;padding:12px 16px;border-width:1px}
.ccr-maps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
.ccr-maps iframe{width:100%;height:320px;border:0;display:block}
.ccr-cta{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:24px}
.ccr-cta h2{margin:0;font-size:30px;max-width:640px}

/* single project */
body.ccr.single-ccr_project .entry-title{font-size:44px;margin:24px 0 8px}
body.ccr.single-ccr_project .site-content .ast-container{max-width:1240px;padding:0 32px}
body.ccr.single-ccr_project .ast-article-single{padding:48px 0!important;background:transparent}
.ccr-back{margin:0 0 8px}
.ccr-single__meta{display:flex;flex-wrap:wrap;gap:12px 48px;padding:20px 0;margin:0 0 32px;border-top:3px solid var(--ccr-yellow);border-bottom:1px solid var(--ccr-line)}
.ccr-single__meta div{display:flex;flex-direction:column}
.ccr-single__meta .ccr-lbl{margin:0}
.ccr-single__img{width:100%;height:auto;max-height:720px;object-fit:cover;display:block;margin:0 0 32px}
.ccr-single__body{max-width:760px;font-size:17px}
.ccr-cta-band{margin:64px 0 16px;padding:40px;background:var(--ccr-alt);border-top:3px solid var(--ccr-yellow)}
.ccr-cta-band h2{font-size:26px;margin:0 0 6px}
.ccr-cta-band p{color:var(--ccr-ink2);margin:0 0 20px}

/* footer */
.ccr-footer{border-top:3px solid var(--ccr-yellow);font-size:14px;color:var(--ccr-ink2);background:#fff}
.ccr-footer__grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:48px;padding-top:56px;padding-bottom:40px}
.ccr-footer p{margin:0 0 14px}
.ccr-footer__bar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;padding-top:20px;padding-bottom:28px;border-top:1px solid var(--ccr-line);color:var(--ccr-muted);font-size:13px}

/* blog */
body.ccr.blog .site-content .ast-container, body.ccr.single-post .site-content .ast-container, body.ccr.archive .site-content .ast-container{max-width:1240px;padding:48px 32px}

/* responsive */
@media (max-width:1100px){
  .ccr-nav{gap:20px}
  .ccr-hero h1{font-size:46px}
  .ccr-hero--split h1{font-size:34px}
  .ccr-hero__grid{gap:40px}
  .ccr-hero--split .ccr-hero__img{height:440px}
}
@media (max-width:921px){
  .ccr-burger{display:flex}
  .ccr-nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--ccr-line);flex-direction:column;align-items:stretch;gap:0;padding:8px 24px 24px}
  .ccr-nav.is-open{display:flex}
  .ccr-nav > a{padding:14px 0;border-bottom:1px solid var(--ccr-line)}
  .ccr-nav > a[aria-current="page"]{border-bottom-color:var(--ccr-yellow)}
  .ccr-nav > a.ccr-nav__hl{padding:14px 16px;margin:8px 0 4px;border-bottom:0}
  .ccr-nav__side{margin:16px 0 0;justify-content:space-between}
  .ccr-header__in{position:relative;min-height:64px}
  .ccr-wrap{padding:0 20px}
  .ccr-hero{padding-top:48px}
  .ccr-hero h1{font-size:34px}
  .ccr-pagehead{padding:48px 0 32px}
  .ccr-pagehead h1{font-size:32px}
  .ccr-hero__img{height:300px}
  .ccr-hero--split{padding:24px 0 48px}
  .ccr-hero__grid{grid-template-columns:1fr;gap:28px}
  .ccr-hero--split h1{font-size:30px}
  .ccr-hero--split .ccr-lead{margin-bottom:24px}
  .ccr-hero--split .ccr-hero__img{height:300px}
  .ccr-stats__grid{grid-template-columns:repeat(2,minmax(0,1fr));padding-top:40px;padding-bottom:40px}
  .ccr-stats__grid strong{font-size:28px}
  .ccr-sec{padding:64px 0}
  .ccr-sec h2{font-size:28px;margin-bottom:28px}
  .ccr-split,.ccr-row,.ccr-maps{grid-template-columns:1fr;gap:32px}
  .ccr-row--rev > div:first-child{order:0}
  .ccr-split__img--tall{height:300px}
  .ccr-grid{grid-template-columns:1fr;gap:36px}
  .ccr-form{grid-template-columns:1fr}
  .ccr-footer__grid{grid-template-columns:1fr;gap:24px}
  .ccr-logos{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ccr-logos li{height:84px;padding:12px}
  .ccr-cta h2{font-size:24px}
  .ccr-lead{font-size:16px}
  .admin-bar .ccr-header{top:0}
}

/* Thai small labels: no tracking */
.ccr-contact dt.ccr-lbl, .ccr-footer .ccr-lbl, .ccr-single__meta .ccr-lbl{font-family:var(--ccr-font);letter-spacing:0;font-size:13px;text-transform:none}
/* hide TranslatePress floating switcher (we have TH/EN in header) */
#trp-floater-ls, .trp-floating-switcher{display:none!important}
body.ccr .ccr-btn, body.ccr a.ccr-btn:hover{text-decoration:none!important}

/* single project: hide author/date line */
body.ccr.single-ccr_project .entry-meta{display:none}
body.ccr .ccr-card, body.ccr .ccr-card *, body.ccr .ccr-nav a, body.ccr .ccr-brand{text-decoration:none!important}
html[lang^="en"] .ccr-brand__en{display:none}
