/*
Theme Name: PLC and DCS Components
Description: Responsive industrial B2B child theme for Southeast Asian market development.
Version: 1.0.0
Template: cnc-foundation
Text Domain: cnc-tooling
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--body-font);line-height:1.6;-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%;height:auto} a{color:inherit;text-decoration-thickness:.08em;text-underline-offset:.2em} button,input,textarea,select{font:inherit} button{cursor:pointer}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.container{width:min(100% - 48px,1240px);margin-inline:auto}
.site-header{position:relative;z-index:5;background:var(--header);color:var(--header-ink);border-bottom:1px solid var(--line)}
.site-header .container{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:28px}
.brand{font-family:var(--heading-font);font-weight:850;font-size:1.28rem;line-height:1.1;letter-spacing:-.035em;text-decoration:none;flex:0 0 auto}
.main-nav{display:flex;align-items:center;gap:clamp(16px,2.2vw,32px)} .main-nav ul{display:flex;align-items:center;gap:clamp(16px,2.2vw,32px);list-style:none;margin:0;padding:0}.main-nav a{font-size:.89rem;font-weight:650;text-decoration:none}.main-nav a:hover{text-decoration:underline}.nav-toggle{display:none}
.hero{position:relative;overflow:hidden;background:var(--hero-bg);color:var(--hero-ink)}
.hero>.container,.hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:clamp(32px,5vw,76px)}
.hero-content{position:relative;z-index:1;padding:clamp(68px,9vw,128px) 0}
.hero h1,.hero .hero-title{font-family:var(--heading-font);font-weight:800;font-size:clamp(2.55rem,5.8vw,5.35rem);line-height:1.01;letter-spacing:-.055em;margin:.25em 0 .32em;max-width:13ch;text-wrap:balance}
.hero p{font-size:clamp(1rem,1.3vw,1.15rem);max-width:58ch;color:var(--hero-muted)}
.hero-media{min-width:0;align-self:stretch;min-height:360px;overflow:hidden;background:var(--image-bg)}.hero-media img{width:100%;height:100%;min-height:360px;object-fit:cover}
.eyebrow,.kicker,.section-kicker{display:inline-flex;align-items:center;gap:8px;font-size:.73rem;font-weight:800;letter-spacing:.15em;text-transform:uppercase;color:var(--accent)}
.hero .eyebrow,.hero .kicker{color:var(--hero-accent)}
.button,.wp-block-button__link,button[type=submit]{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:13px 22px;border:1px solid transparent;border-radius:var(--radius);background:var(--accent);color:var(--on-accent);font-size:.9rem;font-weight:750;line-height:1.2;text-decoration:none;transition:transform .16s ease,filter .16s ease}
.button:hover,.wp-block-button__link:hover,button[type=submit]:hover{filter:brightness(.93);transform:translateY(-2px)}
.button-secondary{color:inherit;background:transparent;border-color:currentColor}
.section{padding:clamp(64px,8vw,112px) 0}.section-head{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:clamp(28px,4vw,48px)}
h2,h3,h4{font-family:var(--heading-font);line-height:1.12;letter-spacing:-.035em} h2{font-size:clamp(2rem,3.5vw,3.55rem);margin:.2em 0 .45em}h3{font-size:1.25rem;margin:.3em 0}.section-head p{max-width:56ch;color:var(--muted)}
.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.product-card{min-width:0;background:var(--card);border:1px solid var(--line);overflow:hidden}.product-card h3,.product-card p,.product-card .card-content{margin-left:22px;margin-right:22px}.product-card p{color:var(--muted)}.product-card a{text-underline-offset:.25em}.product-card .button{margin:0 22px 22px}
.product-image{overflow:hidden;background:var(--image-bg);aspect-ratio:4/3}.product-image img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}.product-card:hover .product-image img{transform:scale(1.025)}
.feature-list,.process-list{margin:0;padding:0;list-style:none;display:grid;gap:16px}.feature-list li,.process-list li{padding:18px 0;border-bottom:1px solid var(--line)}
.about-section .container,.quote-section .container{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(36px,7vw,96px);align-items:start}
.quote-section{background:var(--panel);color:var(--ink)}.quote-form{background:var(--card);padding:clamp(24px,4vw,40px);border:1px solid var(--line)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.quote-form label{display:block;font-size:.84rem;font-weight:700;margin:0 0 7px}.quote-form input,.quote-form select,.quote-form textarea{width:100%;min-height:48px;padding:12px;border:1px solid var(--input-line);border-radius:2px;background:var(--paper);color:var(--ink)}.quote-form textarea{min-height:130px;resize:vertical}.quote-form button{margin-top:12px}
.site-footer{padding:56px 0;background:var(--footer);color:var(--footer-ink)}.site-footer .container{display:flex;justify-content:space-between;gap:32px;flex-wrap:wrap}.site-footer a{color:inherit}.site-footer p{max-width:50ch}
@media(max-width:900px){.site-header .container{flex-wrap:wrap;padding-block:18px;gap:14px}.main-nav,.main-nav ul{gap:16px;flex-wrap:wrap}.hero>.container,.hero-grid{gap:28px}.hero h1{font-size:clamp(2.5rem,7vw,4rem)}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.container{width:min(100% - 32px,1240px)}.site-header .container{min-height:auto}.brand{font-size:1.12rem}.main-nav{width:100%;overflow-x:auto;flex-wrap:nowrap;padding-bottom:3px}.main-nav ul{flex-wrap:nowrap;white-space:nowrap}.hero>.container,.hero-grid,.about-section .container,.quote-section .container{grid-template-columns:1fr}.hero-content{padding:56px 0 12px}.hero-media,.hero-media img{min-height:240px}.hero h1{font-size:clamp(2.5rem,10vw,3.45rem)}.section{padding:64px 0}.section-head{display:block}.product-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.site-footer .container{display:block}.site-footer .container>*+*{margin-top:20px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}

:root{--paper:#f6f2e8;--ink:#262a29;--muted:#5d625e;--header:#f9f6ef;--header-ink:#262a29;--hero-bg:#e6dfcf;--hero-ink:#222927;--hero-muted:#515a56;--accent:#765116;--hero-accent:#765116;--on-accent:#fff;--panel:#e8e1d4;--card:#fffdf8;--footer:#252c29;--footer-ink:#f0ede5;--line:#d8d1c4;--input-line:#918a7d;--focus:#9a6812;--image-bg:#d6cfbf;--radius:0;--heading-font:Georgia,'Times New Roman',serif;--body-font:Arial,Helvetica,sans-serif}
.hero>.container,.hero-grid{grid-template-columns:.92fr 1.08fr}.hero-content{padding-left:clamp(16px,3vw,44px);border-left:1px solid #b9ad98}.hero h1{font-weight:500;letter-spacing:-.04em;font-style:italic}.hero-media{margin:42px 0;min-height:500px}.hero-media img{min-height:500px}.eyebrow,.kicker{letter-spacing:.2em}.product-grid{gap:1px;background:var(--line);border:1px solid var(--line)}.product-card{border:0}.product-image{aspect-ratio:1/1}.product-card h3{font-family:var(--body-font);font-weight:700;letter-spacing:-.02em}.section-head{border-top:1px solid var(--line);padding-top:26px}.about-section{background:#fffdf8}.quote-form{border-top:4px solid #765116}
@media(max-width:640px){.hero-content{padding-left:18px}.hero-media{margin:0;min-height:250px}.hero-media img{min-height:250px}.product-grid{gap:1px}}

/* Shared markup refinements */
.hero-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:28px}.hero-note{font-size:.82rem!important;opacity:.85;margin-top:24px}.product-card{text-decoration:none}.product-card-body{padding:22px}.product-card .product-card-body h3,.product-card .product-card-body p{margin-left:0;margin-right:0}.product-card-body small{color:var(--accent);font-weight:800;text-transform:uppercase;letter-spacing:.1em;font-size:.72rem}.product-card .text-link{display:inline-block;font-size:.85rem;font-weight:750;text-decoration:underline;text-underline-offset:.24em}.about-media{overflow:hidden;background:var(--image-bg);min-height:300px}.about-media img{width:100%;height:100%;min-height:300px;object-fit:cover}.about-copy p{color:var(--muted)}.process-item h3{margin-bottom:.3em}.process-item p{color:var(--muted)}.quote-section{padding:clamp(64px,8vw,112px) 0}.quote-copy p{max-width:52ch;color:var(--muted)}.quote-form p{margin:0 0 16px}.site-footer .brand{display:inline-block;margin-bottom:12px}
@media(max-width:640px){.about-media,.about-media img{min-height:220px}.quote-section{padding:64px 0}}

/* Control modules: editorial compatibility guidance and technical brief. */
.controls-check{background:var(--paper)}.controls-checks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(1rem,3vw,2rem)}.controls-checks article{padding:1.4rem 0;border-top:2px solid var(--accent)}.controls-checks article>span{color:var(--accent);font-weight:800;font-size:.8rem}.controls-checks h3{font-family:var(--body-font);font-size:1.05rem;line-height:1.3}.controls-checks p{color:var(--muted);font-size:.95rem}.controls-products{background:#fffdf8}.controls-brief{background:var(--hero-bg)}.controls-brief-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(2rem,7vw,6rem);align-items:center}.controls-brief-media{aspect-ratio:4/3;overflow:hidden}.controls-brief-media img{width:100%;height:100%;object-fit:cover}.controls-brief-grid p{color:var(--muted)}.controls-process .process-item{border-top:1px solid var(--line)}
@media(max-width:900px){.controls-checks{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.controls-checks,.controls-brief-grid{grid-template-columns:1fr}.controls-checks{gap:0}.controls-brief-media{aspect-ratio:4/3}.hero>.container,.hero-grid{grid-template-columns:minmax(0,1fr)}.controls-hero h1{max-width:none;overflow-wrap:anywhere}}
