/*
Theme Name: Automation Parts Directory
Description: Responsive industrial B2B child theme for Southeast Asian market development.
Version: 1.0.0
Template: cnc-foundation
Text Domain: cnc-machine
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:#f4f6f7;--ink:#142331;--muted:#4e6170;--header:#fff;--header-ink:#172b3a;--hero-bg:#142b3b;--hero-ink:#fff;--hero-muted:#d0dbe2;--accent:#c13d23;--hero-accent:#ffb9a5;--on-accent:#fff;--panel:#e5ebee;--card:#fff;--footer:#0c1d29;--footer-ink:#e3eaf0;--line:#d2dde2;--input-line:#8e9fa9;--focus:#e65b37;--image-bg:#a4b6c0;--radius:2px;--heading-font:Arial,Helvetica,sans-serif;--body-font:Arial,Helvetica,sans-serif}
.hero>.container,.hero-grid{grid-template-columns:1fr 1.03fr}.hero-media{margin:32px 0 32px;min-height:480px}.hero-media img{min-height:480px}.hero-content:before{content:'';display:block;width:50px;height:4px;background:var(--accent);margin-bottom:26px}.product-card{border-top:4px solid #19394d}.about-section{background:#fff}.feature-list{grid-template-columns:1fr 1fr}.feature-list li{border-top:1px solid var(--line)}
@media(max-width:640px){.hero-media{margin:0 -16px 0;min-height:250px}.hero-media img{min-height:250px}.feature-list{grid-template-columns:1fr}}

/* 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}}

/* Directory layout: model-first search and buying guidance. */
.directory-hero-search{max-width:34rem;margin-top:1.5rem}.directory-hero-search .catalog-search{width:100%}.directory-hero-search .catalog-search input{flex:1;min-width:0}.directory-brands{margin:0 0 2rem;padding:1.25rem 0;border-block:1px solid var(--line)}.directory-brands>span{font-size:.76rem;font-weight:800;text-transform:uppercase;letter-spacing:.1em}.directory-brands ul{display:flex;flex-wrap:wrap;gap:.65rem 1rem;margin:.8rem 0 0;padding:0;list-style:none}.directory-brands a{font-weight:700}.directory-guide{background:#fff}.directory-guide-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(2rem,7vw,6rem)}.directory-guide-grid>div>p{max-width:52ch;color:var(--muted)}.directory-checklist{margin:0;padding:0;list-style:none;counter-reset:guide}.directory-checklist li{counter-increment:guide;display:grid;grid-template-columns:2.5rem 1fr;column-gap:1rem;padding:1.25rem 0;border-top:1px solid var(--line)}.directory-checklist li::before{content:'0' counter(guide);grid-row:1/3;color:var(--accent);font-weight:800}.directory-checklist li span{color:var(--muted);margin-top:.35rem}.directory-process{background:var(--paper)}
@media(max-width:700px){.directory-guide-grid{grid-template-columns:1fr}.directory-hero-search .catalog-search{display:flex}.directory-brands ul{gap:.75rem}.directory-guide{padding-block:4rem}}
/* Keep the hero readable after the later desktop-specific grid override. */
@media(max-width:640px){.hero>.container,.hero-grid{grid-template-columns:minmax(0,1fr)}.directory-hero h1{max-width:none;overflow-wrap:anywhere}}
