/*
Theme Name: Cable Catalog
Description: Restrained catalogue-first theme for the local cable machinery demo.
Version: 0.3.0
Text Domain: cable-catalog
*/

:root { --ink:#13272d; --muted:#53666a; --teal:#398f8c; --teal-dark:#247270; --wash:#eef5f3; --line:#d7e1df; --paper:#fff; --max:1180px; --gutter:clamp(20px,4.2vw,48px); }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; color:var(--ink); background:var(--paper); font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size:16px; line-height:1.6; }
img { display:block; max-width:100%; height:auto; }
a { color:inherit; }
h1,h2,h3 { margin:0 0 .55em; color:#0e1d22; line-height:1.08; letter-spacing:-.035em; }
h1 { font-size:clamp(2.5rem,6vw,5rem); }
h2 { font-size:clamp(2rem,4vw,3rem); }
h3 { font-size:1.3rem; }
p { margin:0 0 1.1rem; }
.wrap { width:min(calc(100% - (2 * var(--gutter))),var(--max)); margin-inline:auto; }
.narrow { max-width:900px; }
.eyebrow { margin:0 0 .8rem; color:var(--teal); font-size:.76rem; font-weight:800; letter-spacing:.15em; text-transform:uppercase; }
.lead { max-width:760px; color:var(--muted); font-size:1.2rem; }
.small { color:var(--muted); font-size:.85rem; }
.button { display:inline-flex; min-height:48px; align-items:center; justify-content:center; padding:.8rem 1.25rem; border:0; border-radius:4px; color:#fff; background:var(--teal); font:inherit; font-weight:750; text-decoration:none; cursor:pointer; }
.button:hover,.button:focus-visible { background:var(--teal-dark); }
.button--secondary { border:1px solid var(--teal); color:var(--teal-dark); background:#fff; }
.button--secondary:hover,.button--secondary:focus-visible { color:#fff; background:var(--teal-dark); }
.text-link { color:var(--teal); font-weight:750; text-underline-offset:4px; }
.concept-bar { padding:7px max(var(--gutter),calc((100vw - var(--max))/2)); color:#607174; background:var(--wash); font-size:.78rem; }
.concept-bar span { padding:0 .35rem; }
.site-header { width:min(calc(100% - (2 * var(--gutter))),var(--max)); min-height:84px; margin:auto; display:grid; grid-template-columns:180px 1fr auto; align-items:center; gap:2rem; }
.brand img { width:145px; }
.site-nav { display:flex; justify-content:center; gap:clamp(1rem,3vw,2.3rem); }
.site-nav a { padding:1rem 0 .8rem; border-bottom:2px solid transparent; font-weight:650; text-decoration:none; }
.site-nav a:hover,.site-nav a:focus-visible { border-color:var(--teal); color:var(--teal); }
.menu-toggle { display:none; }
.hero { min-height:330px; display:grid; align-items:center; background:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.98) 48%,rgba(255,255,255,.78) 60%,rgba(255,255,255,.05) 76%),var(--hero-image) right center/60% auto no-repeat,var(--wash); }
.hero__content { width:min(calc(100% - (2 * var(--gutter))),var(--max)); margin:auto; padding-block:24px; }
.hero__content>* { max-width:680px; }
.hero__content h1 { max-width:760px; font-size:clamp(3.35rem,4.8vw,3.5rem); margin-bottom:18px; }
.hero__content p:not(.eyebrow) { max-width:610px; margin-bottom:0; color:var(--muted); font-size:1.25rem; }
.catalog-section { padding-block:0 58px; }
.journal-preview { padding-block:72px; }
.section-heading { display:flex; align-items:end; justify-content:space-between; gap:2rem; margin-bottom:1.5rem; }
.section-heading h2 { margin:0; }
.filter-bar { display:grid; grid-auto-columns:minmax(150px,1fr); grid-auto-flow:column; overflow-x:auto; margin-bottom:2rem; border:1px solid var(--line); border-radius:6px; }
.filter-bar a { padding:.9rem 1.2rem; border-right:1px solid var(--line); font-weight:700; text-align:center; text-decoration:none; white-space:nowrap; }
.filter-bar a:last-child { border-right:0; }
.filter-bar a.is-active,.filter-bar a:hover { color:#fff; background:var(--teal); }
.product-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.product-card { overflow:hidden; border:1px solid var(--line); border-radius:7px; background:var(--paper); }
.product-card__image { position:relative; display:block; aspect-ratio:1.16/1; overflow:hidden; background:var(--wash); }
.product-card__image img { width:100%; height:100%; object-fit:cover; transition:transform .25s ease; }
.product-card:hover .product-card__image img { transform:scale(1.025); }
.product-card__body { padding:1.35rem; }
.product-card h3 a { text-decoration:none; }
.product-card.is-sold .product-card__image img { filter:grayscale(.45); }
.status-badge { position:absolute; top:14px; right:14px; padding:.35rem .7rem; border-radius:999px; color:#fff; background:#4c5a5d; font-size:.75rem; font-weight:800; text-transform:uppercase; }
.status-badge--inline { position:static; display:inline-flex; align-items:center; white-space:nowrap; }
.parameter-list { margin:1rem 0 1.2rem; font-size:.9rem; }
.parameter-list div { display:grid; grid-template-columns:1fr auto; gap:1rem; padding:.45rem 0; border-bottom:1px solid var(--line); }
.parameter-list dt { color:var(--muted); }
.parameter-list dd { margin:0; font-weight:700; text-align:right; }
.requirement-cta { min-height:350px; display:grid; align-items:center; padding:60px max(var(--gutter),calc((100vw - var(--max))/2)); background:linear-gradient(90deg,rgba(238,245,243,1) 0%,rgba(238,245,243,.94) 48%,rgba(238,245,243,.2) 72%),var(--hero-image) right 45%/cover no-repeat,var(--wash); }
.requirement-cta>div { max-width:610px; }
.article-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
.article-grid article { padding:2rem; border:1px solid var(--line); background:#fff; }
.article-grid h2 a,.article-grid h3 a { text-decoration:none; }
.article-filters { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 1.5rem; }
.article-filters a { padding:.55rem .9rem; border:1px solid var(--line); border-radius:999px; font-weight:700; text-decoration:none; }
.article-filters a.is-active,.article-filters a:hover { border-color:var(--teal); color:#fff; background:var(--teal); }
.article-categories { margin:0 0 .65rem; color:var(--teal-dark); font-size:.82rem; font-weight:750; }
.article-categories a { text-underline-offset:3px; }
.article-grid .journal-card { overflow:hidden; padding:0; }
.journal-card__image { display:block; aspect-ratio:16/9; overflow:hidden; background:var(--wash); }
.journal-card__image img { width:100%; height:100%; object-fit:cover; }
.journal-card__body { padding:2rem; }
.empty-state { grid-column:1/-1; padding:2rem; border:1px solid var(--line); background:var(--wash); }
.navigation.pagination { margin-top:2rem; }
.nav-links { display:flex; flex-wrap:wrap; gap:6px; }
.page-numbers { min-width:42px; padding:.45rem .7rem; border:1px solid var(--line); text-align:center; text-decoration:none; }
.page-numbers.current { border-color:var(--teal); color:#fff; background:var(--teal); }
.page-main { padding-block:64px 90px; }
.page-hero { max-width:800px; margin-bottom:2.5rem; }
.page-hero h1,.fixed-page h1,.journal-article h1 { font-size:clamp(2.6rem,6vw,4.8rem); }
.breadcrumbs { margin-bottom:2rem; color:var(--muted); font-size:.9rem; }
.breadcrumbs span { padding:0 .5rem; }
.detail-heading { display:flex; align-items:center; justify-content:space-between; gap:2rem; }
.detail-heading h1 { max-width:900px; }
.product-detail__layout { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:42px; margin-top:2rem; }
.product-content>.wp-block-group { margin-bottom:2rem; padding-bottom:2rem; border-bottom:1px solid var(--line); }
.product-content .wp-block-gallery { display:grid; gap:12px; }
.product-content table { width:100%; border-collapse:collapse; }
.product-content td { padding:.8rem; border-bottom:1px solid var(--line); }
.product-content td:last-child { font-weight:700; text-align:right; }
.inquiry-panel,.contact-card { align-self:start; position:sticky; top:24px; padding:1.7rem; border:1px solid var(--line); border-top:4px solid var(--teal); background:var(--wash); }
.contact-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:32px; margin-top:2.5rem; }
.inquiry-form { display:grid; gap:1rem; }
.inquiry-form label { display:grid; gap:.35rem; font-weight:700; }
.inquiry-form input,.inquiry-form textarea { width:100%; padding:.8rem; border:1px solid #aebfbc; border-radius:4px; font:inherit; }
.demo-notice { padding:1rem; border-left:4px solid var(--teal); background:var(--wash); }
.form-status { min-height:1.5em; color:var(--teal-dark); font-weight:700; }
.prose { max-width:760px; margin-top:2rem; }
.prose p,.journal-article .prose { font-size:1.08rem; }
.journal-cover { overflow:hidden; margin:1.75rem 0 2rem; border-radius:7px; background:var(--wash); }
.journal-cover img { width:100%; max-height:520px; object-fit:cover; }
.share-panel { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:18px 28px; align-items:center; margin:2.5rem 0; padding:1.5rem; border:1px solid var(--line); border-left:4px solid var(--teal); background:var(--wash); }
.share-panel h2 { margin-bottom:.35rem; font-size:1.55rem; }
.share-panel p { margin-bottom:.6rem; }
.share-panel code { font-size:.9em; }
.share-actions { display:flex; flex-wrap:wrap; gap:8px; }
.share-status { grid-column:1/-1; min-height:1.4em; margin:0; color:var(--teal-dark); font-weight:700; }
.related-machinery { margin:3rem 0; padding-top:2.5rem; border-top:1px solid var(--line); }
.related-machinery .product-grid { grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); }
.site-footer { display:grid; grid-template-columns:180px 1fr 1fr; gap:2rem; align-items:start; padding:45px max(var(--gutter),calc((100vw - var(--max))/2)); color:#dfeae8; background:var(--ink); font-size:.85rem; }
.site-footer img { width:130px; }
.site-footer nav { display:flex; justify-content:end; gap:1.2rem; }
@media (max-width:900px) {
 .site-header { min-height:74px; grid-template-columns:1fr auto; } .brand img { width:130px; } .header-cta { display:none; }
 .menu-toggle { display:inline-flex; padding:.55rem .8rem; border:1px solid var(--line); background:#fff; font:inherit; font-weight:700; }
 .site-nav { display:none; grid-column:1/-1; flex-direction:column; gap:0; padding-bottom:1rem; } .site-nav.is-open { display:flex; } .site-nav a { padding:.7rem 0; }
 .hero { min-height:auto; padding-block:72px; background:linear-gradient(90deg,rgba(255,255,255,.96),rgba(255,255,255,.75)),var(--hero-image) center/cover no-repeat; }
 .hero__content h1 { max-width:680px; font-size:clamp(2.5rem,6vw,5rem); }
 .product-grid { grid-template-columns:repeat(2,1fr); } .product-detail__layout,.contact-layout { grid-template-columns:1fr; }
 .inquiry-panel,.contact-card { position:static; } .site-footer { grid-template-columns:1fr; } .site-footer nav { justify-content:start; }
}
@media (max-width:620px) {
 .concept-bar { font-size:.7rem; } .hero { min-height:auto; padding-block:58px; } .hero__content p:not(.eyebrow) { font-size:1.05rem; }
 .catalog-section,.journal-preview,.page-main { padding-block:48px; } .section-heading,.detail-heading { align-items:start; flex-direction:column; gap:.5rem; }
 .filter-bar { grid-auto-columns:minmax(138px,70vw); } .product-grid,.article-grid { grid-template-columns:1fr; } .requirement-cta { background:var(--wash); }
 .share-panel { grid-template-columns:1fr; } .share-status { grid-column:1; }
}

