/*
Theme Name: Cedarline Hub
Template: cedarline
Version: 1.0.0
Description: Storefront styling for Cedarline Hub, built on the Cedarline theme.
Requires PHP: 7.4
License: GPL-2.0-or-later
*/

:root{--hub-bg:#f7f6ef;--hub-paper:#fffefa;--hub-ink:#17291f;--hub-muted:#486054;--hub-green:#1b4535;--hub-line:#ced9cf;--hub-accent:#e3e99f;--hub-radius:18px}
body{background:var(--hub-bg);color:var(--hub-ink);font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
.container{width:min(100% - 3rem,1160px)}
.site-header{background:var(--hub-bg);border-bottom:1px solid var(--hub-line)}
.site-name{display:inline-flex;gap:.55rem;align-items:center;color:var(--hub-ink);letter-spacing:-.045em}
.site-name::before{content:"✳";display:grid;place-items:center;width:2rem;height:2rem;border-radius:.55rem;background:var(--hub-green);color:var(--hub-accent);font-size:1.05rem}
.site-name .brand-dot{display:none}
.site-header .primary-nav a{color:var(--hub-ink);font-size:.92rem}
.site-header .primary-nav a[aria-current=page]{text-decoration:underline;text-underline-offset:.35em}
.site-footer{background:var(--hub-green);color:#f8faf2;margin-top:4rem}
.site-footer a{color:#f8faf2}
h1,h2,h3{color:inherit}
.hub-hero{padding:clamp(3rem,8vw,7rem) 0;background:linear-gradient(118deg,#eef0db,#f7f6ef 63%);border-bottom:1px solid var(--hub-line)}
.hub-hero-inner{display:grid;grid-template-columns:1fr 1.02fr;gap:clamp(2rem,6vw,5rem);align-items:center}
.hub-kicker,.hub-index{color:var(--hub-muted);font-size:.73rem;font-weight:760;letter-spacing:.13em;text-transform:uppercase;line-height:1.5}
.hub-hero h1,.hub-page-heading h1{font:600 clamp(2.7rem,6.5vw,5.6rem)/.98 Georgia,serif;letter-spacing:-.067em;margin:.2em 0 .32em;text-wrap:balance}
.hub-lede{color:var(--hub-muted);font-size:clamp(1.05rem,2vw,1.28rem);max-width:49ch;line-height:1.6}
.hub-actions,.hub-preview-links{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.65rem}
.hub-button{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;background:var(--hub-green);border:1px solid var(--hub-green);color:#fff;font-weight:720;padding:.78rem 1.12rem;border-radius:.55rem;text-decoration:none;line-height:1.3;min-height:44px;cursor:pointer;font-family:inherit;font-size:.92rem}
.hub-button:hover{background:#0d3024;color:#fff}
.hub-button-outline{background:transparent;color:var(--hub-green)}
.hub-button-light{background:var(--hub-accent);color:var(--hub-ink);border-color:var(--hub-accent)}
.hub-button-light:hover{background:#fff;color:var(--hub-ink)}
.hub-hero-art{background:var(--hub-green);padding:1rem;border-radius:var(--hub-radius);box-shadow:0 22px 50px #18342326;transform:rotate(-1.2deg)}
.hub-hero-art img{display:block;width:100%;height:auto;aspect-ratio:1.62;object-fit:cover;object-position:top;border-radius:.52rem;background:#dce4d6}
.hub-art-label{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;color:#fff;padding:.9rem .12rem .1rem}
.hub-art-label span{font-size:.69rem;letter-spacing:.08em;color:#e3e99f;text-transform:uppercase}
.hub-art-label strong{font-size:.85rem}
.hub-section{padding:clamp(2.5rem,6vw,4.8rem) 0;border-bottom:1px solid var(--hub-line)}
.hub-section-head{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-bottom:1.35rem}
.hub-section h2,.hub-band h2,.hub-form-card h2,.hub-purchase h2{font:600 clamp(1.9rem,4vw,3.25rem)/1.08 Georgia,serif;letter-spacing:-.045em;margin:.24rem 0}
.hub-arrow{font-weight:720;color:var(--hub-green);text-decoration-thickness:1px;text-underline-offset:.24em}
.hub-category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:.75rem}
.hub-category-grid a{display:grid;grid-template-columns:1fr auto;gap:.55rem;padding:1rem;border:1px solid var(--hub-line);border-radius:.62rem;color:var(--hub-ink);background:var(--hub-paper);text-decoration:none}
.hub-category-grid a:hover{border-color:var(--hub-green);background:#eef0db}
.hub-category-grid .hub-index{grid-column:1/-1}
.hub-cards,.hub-service-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:1.25rem}
.hub-cards:has(> :only-child){grid-template-columns:minmax(0,580px)}
.hub-card,.hub-service,.hub-form-card,.hub-purchase,.hub-filters{background:var(--hub-paper);border:1px solid var(--hub-line);border-radius:var(--hub-radius)}
.hub-card{overflow:hidden;display:flex;flex-direction:column}
.hub-card img{display:block;width:100%;height:auto;aspect-ratio:1.8;object-fit:cover;object-position:top;background:#e3eadc}
.hub-card-body,.hub-service,.hub-purchase{padding:clamp(1rem,3vw,1.65rem)}
.hub-card-body{display:flex;flex-direction:column;flex:1}
.hub-card h3,.hub-service h3{font:600 clamp(1.25rem,2.6vw,1.75rem)/1.2 Georgia,serif;margin:.22rem 0 .55rem;letter-spacing:-.025em}
.hub-card h3 a,.hub-service h3 a{color:inherit;text-decoration:none}
.hub-card h3 a:hover,.hub-service h3 a:hover{text-decoration:underline}
.hub-card-body>p:not(.hub-kicker),.hub-service>p:not(.hub-kicker){color:var(--hub-muted)}
.hub-card-end{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-top:auto;border-top:1px solid var(--hub-line);padding-top:.8rem;font-weight:780}
.hub-band{display:flex;justify-content:space-between;align-items:center;gap:1.5rem;background:var(--hub-green);color:#fff;margin:3rem 0 0;padding:clamp(1.4rem,5vw,3rem);border-radius:var(--hub-radius)}
.hub-band .hub-kicker{color:var(--hub-accent)}
.hub-band p:last-child{margin-bottom:0}
.hub-page{padding-top:clamp(2.8rem,6vw,5rem);min-height:52vh}
.hub-page-heading{border-bottom:1px solid var(--hub-line);padding-bottom:1.5rem;margin-bottom:2rem}
.hub-page-heading h1{font-size:clamp(2.5rem,6vw,4.7rem)}
.hub-page-body>p,.hub-page-body>ul,.hub-page-body>ol,.hub-page-body>details{max-width:72ch}
.hub-page-body>.hub-service-grid,.hub-page-body>.hub-form-card{margin-bottom:2rem}
.hub-filters{display:grid;grid-template-columns:1.4fr repeat(3,1fr) auto;gap:.8rem;align-items:end;padding:1rem}
.hub-filters label,.hub-enquiry label{display:flex;flex-direction:column;gap:.28rem;font-size:.88rem;font-weight:700}
.hub-filters input,.hub-filters select,.hub-enquiry input,.hub-enquiry select,.hub-enquiry textarea{display:block;width:100%;min-height:44px;border:1px solid #94a99a;border-radius:.42rem;padding:.55rem;background:#fff;color:var(--hub-ink);font:inherit}
.hub-result-count,.hub-small{color:var(--hub-muted);font-size:.9rem}
.hub-empty{padding:1.3rem;border:1px dashed var(--hub-line);border-radius:.55rem}
.hub-pagination{display:flex;gap:.7rem;margin:1rem 0}
.hub-form-card{padding:clamp(1rem,4vw,2rem);max-width:900px}
.hub-enquiry{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.95rem;margin-top:1.2rem}
.hub-enquiry label span{font-size:.78rem;color:var(--hub-muted);font-weight:500}
.hub-span{grid-column:1/-1}
.hub-trap{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
.hub-notice{background:#e5efdb;padding:.8rem 1rem;border-radius:.42rem;border-left:3px solid var(--hub-green)}
.hub-product-grid{display:grid;grid-template-columns:1.45fr 1fr;gap:1.5rem;align-items:start}
.hub-product-media img{border-radius:var(--hub-radius);width:100%;height:auto;background:var(--hub-paper)}
.hub-detail-content{margin-top:2.2rem;max-width:76ch}
.hub-details{margin-top:2rem}
details{border:1px solid var(--hub-line);background:var(--hub-paper);padding:.85rem 1rem;border-radius:.5rem;margin:.7rem 0}
summary{cursor:pointer;font-weight:700}
details p:last-child{margin-bottom:0}
:focus-visible{outline:3px solid #49622e;outline-offset:4px}
@media(max-width:900px){.hub-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.hub-product-grid{grid-template-columns:1.2fr 1fr}}
@media(max-width:680px){.container{width:calc(100% - 1.8rem)}.hub-hero-inner,.hub-product-grid,.hub-enquiry{grid-template-columns:1fr}.hub-hero-art{transform:none}.hub-section-head,.hub-band{align-items:flex-start;flex-direction:column}.hub-filters{grid-template-columns:1fr}.hub-art-label{justify-content:flex-start}.hub-art-label strong{flex-basis:100%}}
