/*
Theme Name: Candler Holdings
Theme URI: https://candlerholdings.com
Author: Candler Holdings
Description: Corporate theme for Candler Holdings and its brands. Includes Brands and Industries content types, a built-in secure contact form and security hardening. No plugins required.
Version: 1.1.0
Requires at least: 6.3
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: candler
*/
/* Candler Holdings — static site stylesheet */
:root{
  --ink:#16232E; --ink-2:#2A3A47; --paper:#F7F8F6; --white:#FFFFFF;
  --line:#D9DED9; --muted:#56636C; --brass:#9C6B17; --brass-soft:#F1E6CF;
  --foods:#C98F12; --dynaguard:#2F5D8A; --grainlock:#7A4E2D; --mekara:#B23A2E; --organicking:#4C7A34;
  --wrap:1180px; --radius:6px;
  --font:"Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);font-size:1.0625rem;line-height:1.6}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
a:hover{color:var(--brass)}
:focus-visible{outline:3px solid var(--brass);outline-offset:3px;border-radius:2px}
.wrap{width:min(100% - 2.5rem,var(--wrap));margin-inline:auto}
.skip{position:absolute;left:-999px;top:0;background:var(--ink);color:#fff;padding:.6rem 1rem;z-index:100}
.skip:focus{left:1rem;top:1rem}

/* Type scale */
h1,h2,h3{line-height:1.1;margin:0 0 .6em;font-weight:700;letter-spacing:-.02em}
h1{font-size:clamp(2.6rem,6.2vw,5rem);letter-spacing:-.035em}
h2{font-size:clamp(1.8rem,3.4vw,2.6rem)}
h3{font-size:1.3rem;letter-spacing:-.01em}
p{margin:0 0 1em;max-width:68ch}
.lead{font-size:clamp(1.15rem,1.8vw,1.35rem);color:var(--ink-2);max-width:56ch}
.muted{color:var(--muted)}

/* Top bar + header */
.topbar{background:var(--ink);color:#C9D2D8;font-size:.875rem}
.topbar .wrap{display:flex;justify-content:space-between;gap:1rem;padding:.45rem 0;flex-wrap:wrap}
.topbar a{color:#fff;text-decoration:none}
.topbar a:hover{color:var(--brass-soft)}
.topbar .contacts{display:flex;gap:1.25rem}
.site-header{background:var(--white);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;min-height:76px}
.logo{display:flex;align-items:center;gap:.7rem;text-decoration:none;color:var(--ink)}
.logo img{height:46px;width:auto}
.logo-mark{width:38px;height:38px;flex:none}
.logo-text{font-weight:700;font-size:1.2rem;letter-spacing:-.02em;line-height:1}
.logo-text small{display:block;font-weight:500;font-size:.72rem;color:var(--muted);letter-spacing:0;margin-top:.25rem}
.nav ul{list-style:none;margin:0;padding:0;display:flex;gap:.25rem;align-items:center}
.nav a{display:block;padding:.55rem .75rem;text-decoration:none;font-weight:500;font-size:.98rem;border-radius:4px}
.nav a[aria-current="page"]{color:var(--brass);box-shadow:inset 0 -2px 0 var(--brass);border-radius:0}
.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.8rem 1.25rem;border-radius:var(--radius);font-weight:600;text-decoration:none;border:2px solid var(--ink);background:var(--ink);color:#fff;font:inherit;font-weight:600;cursor:pointer;line-height:1.2}
.btn:hover{background:var(--ink-2);border-color:var(--ink-2);color:#fff}
.btn-ghost{background:transparent;color:var(--ink)}
.btn-ghost:hover{background:var(--ink);color:#fff}
.btn-light{background:#fff;color:var(--ink);border-color:#fff}
.btn-light:hover{background:var(--brass-soft);border-color:var(--brass-soft);color:var(--ink)}
.nav .btn{margin-left:.5rem;padding:.6rem 1rem}
.menu-toggle{display:none;background:none;border:1px solid var(--line);border-radius:4px;padding:.5rem .75rem;font:inherit;font-weight:600;color:var(--ink);cursor:pointer}

@media (max-width:980px){
  .menu-toggle{display:block}
  .nav{position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--line);display:none}
  .nav.open{display:block}
  .nav ul{flex-direction:column;align-items:stretch;padding:.75rem 1.25rem 1.25rem}
  .nav a{padding:.8rem .25rem;border-bottom:1px solid var(--line)}
  .nav a[aria-current="page"]{box-shadow:none}
  .nav .btn{margin:1rem 0 0;justify-content:center;border-bottom:2px solid var(--ink)}
  .topbar .tagline{display:none}
}

/* Sections */
section{padding:clamp(3.5rem,8vw,6.5rem) 0}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:2rem;flex-wrap:wrap;margin-bottom:2.5rem}
.section-head h2{margin:0;max-width:22ch}
.section-head p{margin:0}
.textlink{font-weight:600;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px;text-decoration-color:var(--brass)}
.alt{background:var(--white);border-block:1px solid var(--line)}

/* Hero with brand spectrum */
.hero{padding:clamp(3rem,7vw,5.5rem) 0 clamp(3rem,7vw,5rem)}
.hero .wrap{display:grid;grid-template-columns:1.05fr 1fr;gap:clamp(2rem,5vw,4.5rem);align-items:stretch}
.hero h1{max-width:12ch}
.hero .actions{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:2rem}
.hero-copy{display:flex;flex-direction:column;justify-content:center}
.spectrum{display:flex;gap:6px;min-height:460px}
.band{flex:1;display:flex;flex-direction:column;justify-content:flex-end;padding:1.1rem;color:#fff;text-decoration:none;border-radius:var(--radius);background:var(--c);transition:flex-grow .45s cubic-bezier(.2,.7,.2,1);overflow:hidden;position:relative;min-width:0}
.band:hover,.band:focus-visible{flex-grow:2.6;color:#fff}
.band strong{font-size:1.15rem;writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap;letter-spacing:-.01em}
.band .short{display:none}
.band .long{font-size:.92rem;line-height:1.35;opacity:0;max-width:22ch;transition:opacity .3s .1s;position:absolute;left:1.1rem;right:1.1rem;top:1.1rem}
.band:hover .long,.band:focus-visible .long{opacity:1}
.spectrum-note{font-size:.88rem;color:var(--muted);margin-top:.75rem}
@media (max-width:860px){
  .hero .wrap{grid-template-columns:1fr}
  .spectrum{flex-direction:column;min-height:0}
  .band{flex-direction:row;align-items:center;justify-content:space-between;padding:1rem 1.1rem;min-height:64px}
  .band:hover,.band:focus-visible{flex-grow:1}
  .band strong{writing-mode:horizontal-tb;transform:none}
  .band .long,.spectrum-note{display:none}
  .band .short{display:block;font-size:.85rem;opacity:.92;text-align:right;max-width:24ch;line-height:1.3}
}

/* Portfolio register */
.register{list-style:none;margin:0;padding:0;border-top:2px solid var(--ink)}
.register li{border-bottom:1px solid var(--line)}
.register a{display:grid;grid-template-columns:14px minmax(170px,1fr) 2fr auto;gap:1.5rem;align-items:center;padding:1.5rem 0;text-decoration:none}
.register .tick{width:14px;height:44px;border-radius:3px;background:var(--c)}
.register .name{font-size:clamp(1.35rem,2.4vw,1.8rem);font-weight:700;letter-spacing:-.02em}
.register .desc{color:var(--ink-2)}
.register .desc small{display:block;color:var(--muted);font-size:.9rem;margin-top:.2rem}
.register .go{font-weight:600;font-size:.95rem;white-space:nowrap}
.register a:hover .name{color:var(--c)}
@media (max-width:720px){
  .register a{grid-template-columns:10px 1fr;gap:.4rem 1rem}
  .register .tick{grid-row:span 3;height:100%;width:10px}
  .register .go{font-size:.9rem}
}

/* Columns */
.cols{display:grid;grid-template-columns:repeat(var(--n,3),1fr);gap:clamp(1.5rem,3vw,2.5rem)}
.cols > div{border-top:3px solid var(--brass);padding-top:1.1rem}
.cols p{margin:0;color:var(--ink-2)}
@media (max-width:860px){.cols{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.cols{grid-template-columns:1fr}}

/* Industry list */
.industries{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1rem}
.industry{display:block;background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:1.4rem 1.5rem;text-decoration:none}
.industry:hover{border-color:var(--ink);color:var(--ink)}
.industry h3{margin-bottom:.35rem}
.industry p{margin:0;color:var(--muted);font-size:.95rem}
.chips{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.9rem}
.chip{display:inline-flex;align-items:center;gap:.4rem;font-size:.85rem;font-weight:600;padding:.25rem .6rem;border-radius:999px;background:var(--paper);border:1px solid var(--line)}
.chip::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--c)}

/* CTA band */
.cta{background:var(--ink);color:#fff}
.cta .wrap{display:flex;justify-content:space-between;align-items:center;gap:2rem;flex-wrap:wrap}
.cta h2{margin:0;max-width:24ch}
.cta p{color:#C9D2D8;margin:.6rem 0 0}

/* Page header */
.page-head{padding:clamp(3rem,6vw,4.5rem) 0 clamp(2rem,4vw,3rem);border-bottom:1px solid var(--line);background:var(--white)}
.page-head h1{font-size:clamp(2.3rem,5vw,3.8rem);max-width:18ch}
.crumbs{font-size:.9rem;color:var(--muted);margin-bottom:1.25rem}
.crumbs a{color:var(--muted)}
.brand-head{border-top:10px solid var(--c)}

.prose{max-width:72ch}
.prose h2{font-size:1.6rem;margin-top:2.2rem}
.prose h3{margin-top:1.6rem}
.prose ul{padding-left:1.2rem}
.prose li{margin-bottom:.4rem}

.split{display:grid;grid-template-columns:2fr 1fr;gap:clamp(2rem,5vw,4rem);align-items:start}
@media (max-width:860px){.split{grid-template-columns:1fr}}
.panel{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:1.5rem}
.panel h3{font-size:1.1rem}
.panel ul{margin:0;padding-left:1.1rem}
.areas{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:1rem}
.areas li{background:var(--white);border:1px solid var(--line);border-left:4px solid var(--c);border-radius:var(--radius);padding:1.1rem 1.2rem}
.areas strong{display:block;margin-bottom:.2rem}
.areas span{color:var(--muted);font-size:.95rem}

/* Forms */
.form{display:grid;gap:1.1rem}
.form .row{display:grid;grid-template-columns:1fr 1fr;gap:1.1rem}
@media (max-width:620px){.form .row{grid-template-columns:1fr}}
label{display:block;font-weight:600;font-size:.95rem;margin-bottom:.35rem}
input,select,textarea{width:100%;font:inherit;color:var(--ink);background:#fff;border:1px solid #AEB7B9;border-radius:4px;padding:.75rem .85rem}
input:focus,select:focus,textarea:focus{outline:3px solid var(--brass-soft);border-color:var(--brass)}
textarea{min-height:170px;resize:vertical}
.hp{position:absolute;left:-5000px;width:1px;height:1px;overflow:hidden}
.notice{padding:1rem 1.2rem;border-radius:var(--radius);margin-bottom:1.5rem;font-weight:500}
.notice.error{background:#FBE9E7;border:1px solid #E5A79E;color:#7A2016}
.notice.ok{background:#E8F1E3;border:1px solid #A9C79A;color:#24461A}
[hidden]{display:none!important}
.small{font-size:.88rem;color:var(--muted)}

.empty{background:var(--white);border:1px dashed #AEB7B9;border-radius:var(--radius);padding:2.5rem;max-width:640px}

/* Footer */
.site-footer{background:var(--ink);color:#C9D2D8;padding:4rem 0 2rem;font-size:.95rem}
.site-footer a{color:#fff;text-decoration:none}
.site-footer a:hover{color:var(--brass-soft);text-decoration:underline}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.3fr;gap:2.5rem}
.site-footer h2{font-size:1rem;color:#fff;margin-bottom:1rem;letter-spacing:0}
.site-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:.5rem}
.site-footer .logo-text{color:#fff}
.site-footer .logo-text small{color:#9FAAB2}
.foot-bottom{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;border-top:1px solid #33434F;margin-top:3rem;padding-top:1.5rem;font-size:.88rem}
.foot-bottom ul{display:flex;gap:1.25rem;flex-wrap:wrap}
.social{display:flex;gap:1rem;margin-top:1.25rem}
@media (max-width:900px){.foot-grid{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.foot-grid{grid-template-columns:1fr}}

@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* ---------- WordPress additions ---------- */
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}
.admin-bar .site-header{top:32px}
@media (max-width:782px){.admin-bar .site-header{top:0}}
.custom-logo{height:46px;width:auto}
.nav .sub-menu{display:none}
.nav .current-menu-item>a,.nav .current_page_item>a,.nav .current-menu-ancestor>a{color:var(--brass);box-shadow:inset 0 -2px 0 var(--brass);border-radius:0}
@media (max-width:980px){.nav .current-menu-item>a,.nav .current_page_item>a{box-shadow:none}}
.prose img,.prose figure{max-width:100%;height:auto;margin:1.5rem 0}
.prose figcaption{font-size:.88rem;color:var(--muted)}
.prose a{text-decoration-color:var(--brass);text-underline-offset:3px}
.prose blockquote{margin:1.5rem 0;padding-left:1.25rem;border-left:4px solid var(--brass);color:var(--ink-2)}
.alignleft{float:left;margin:0 1.5rem 1rem 0}.alignright{float:right;margin:0 0 1rem 1.5rem}.aligncenter{margin-inline:auto}
.posts{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.5rem}
.post-card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column}
.post-card img{aspect-ratio:16/9;object-fit:cover;width:100%}
.post-card .inner{padding:1.3rem 1.4rem 1.5rem}
.post-card h2{font-size:1.25rem;margin:.3rem 0 .6rem}
.post-card h2 a{text-decoration:none}
.post-card p{font-size:.97rem;color:var(--ink-2);margin:0}
.pagination{margin-top:2.5rem;display:flex;gap:.5rem;flex-wrap:wrap}
.pagination .page-numbers{padding:.5rem .85rem;border:1px solid var(--line);border-radius:4px;text-decoration:none;background:#fff}
.pagination .current{background:var(--ink);color:#fff;border-color:var(--ink)}
.featured{border-radius:var(--radius);margin-bottom:2rem}

/* ---------- Brand logos ---------- */
.logo-box{display:inline-flex;align-items:center;justify-content:center;background:#fff;border:1px solid var(--line);border-radius:4px;padding:4px 8px;height:52px;flex:none}
.logo-box img,.brand-logo{max-height:42px;width:auto;max-width:110px;object-fit:contain}
.register .name{display:flex;align-items:center;gap:.9rem}
.industry .logo-box{height:48px}
.head-with-logo{display:grid;grid-template-columns:1fr auto;gap:2rem;align-items:center}
.head-logo{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1rem 1.25rem;display:flex;align-items:center;justify-content:center;min-width:200px}
.brand-logo-lg{max-height:110px;width:auto;max-width:260px;object-fit:contain}
@media (max-width:720px){.head-with-logo{grid-template-columns:1fr}.head-logo{justify-self:start;min-width:0}}

/* ---------- Products ---------- */
.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:1.25rem}
.product-card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column}
.product-card:hover{border-color:var(--ink)}
.product-img{display:flex;align-items:center;justify-content:center;aspect-ratio:1/1;background:#fff;border-bottom:1px solid var(--line);padding:1rem}
.product-img img{width:100%;height:100%;object-fit:contain}
.no-img{color:var(--muted);font-size:.9rem}
.product-card .inner{padding:1rem 1.1rem 1.25rem}
.product-card h3{font-size:1.08rem;margin:.6rem 0 .35rem}
.product-card h3 a{text-decoration:none}
.product-card p{font-size:.93rem;color:var(--muted);margin:0}
.filters{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}
.filters a{display:inline-flex;align-items:center;gap:.45rem;padding:.45rem .9rem;border:1px solid var(--line);border-radius:999px;background:#fff;text-decoration:none;font-weight:600;font-size:.92rem}
.filters a[style]::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--c)}
.filters a[aria-current]{background:var(--ink);border-color:var(--ink);color:#fff}
.filters-cat{margin-bottom:2rem}
.filters-cat a{font-weight:500}
.filters:last-of-type{margin-bottom:2rem}
.product-top{padding:clamp(2rem,5vw,3.5rem) 0 clamp(3rem,6vw,4.5rem);background:var(--white);border-bottom:1px solid var(--line)}
.product-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:clamp(2rem,5vw,4rem);align-items:start}
@media (max-width:860px){.product-layout{grid-template-columns:1fr}}
.gallery-main{aspect-ratio:1/1;border:1px solid var(--line);border-radius:var(--radius);background:#fff;display:flex;align-items:center;justify-content:center;padding:1.5rem}
.gallery-main img{width:100%;height:100%;object-fit:contain}
.gallery-thumbs{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:.8rem}
.gallery-thumbs button{width:76px;height:76px;padding:4px;border:2px solid var(--line);border-radius:4px;background:#fff;cursor:pointer}
.gallery-thumbs button[aria-pressed="true"]{border-color:var(--ink)}
.gallery-thumbs img{width:100%;height:100%;object-fit:contain}
.product-info h1{font-size:clamp(2rem,4vw,3rem)}
.product-brand{display:inline-block;margin-bottom:1.25rem}
.product-brand .brand-logo{max-height:56px;max-width:160px}
.h-small{font-size:1rem;margin:1.5rem 0 .6rem}
.packs{list-style:none;padding:0;margin:0 0 1rem;display:flex;flex-wrap:wrap;gap:.5rem}
.packs li{border:1px solid var(--line);background:var(--paper);border-radius:4px;padding:.35rem .75rem;font-weight:600;font-size:.92rem}
