/*
Theme Name: Sunrise Brickworks
Theme URI: https://example.com/
Author: Sunrise Brickworks
Description: A lightweight custom WordPress theme for Sunrise Brickworks. Inventory uses normal WordPress posts, the Featured tag powers the homepage, and listing details use native post meta fields.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: sunrise-brickworks
*/
:root{
  --forest:#0b4d2e;
  --forest-dark:#073a24;
  --evergreen:#15803d;
  --lime:#a3d977;
  --sun:#fcd34d;
  --orange:#f97316;
  --river:#0b6fe6;
  --river-light:#7dd3fc;
  --cream:#fbf7ee;
  --ink:#143126;
  --muted:#5d6f66;
  --line:rgba(11,77,46,.18);
  --shadow:0 18px 45px rgba(19,55,37,.11);
  --radius:20px;
  --shell:min(1180px,calc(100% - 40px));
  --serif:"Fraunces",Georgia,"Times New Roman",serif;
  --sans:"Inter",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--cream);color:var(--ink);font-family:var(--sans);line-height:1.55}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
.shell{width:var(--shell);margin-inline:auto}
.narrow-shell{max-width:850px}
.paper-bg{background-color:var(--cream);background-image:linear-gradient(rgba(251,247,238,.89),rgba(251,247,238,.89)),url('assets/images/paper.webp');background-size:720px auto}
.eyebrow{margin:0 0 10px;color:var(--forest);font-weight:800;letter-spacing:.15em;text-transform:uppercase;font-size:.74rem}
h1,h2,h3{font-family:var(--serif);color:var(--forest-dark);line-height:1.02;margin-top:0}
h1{font-size:clamp(3rem,6vw,6.2rem);letter-spacing:-.055em;margin-bottom:22px}
h2{font-size:clamp(2.2rem,4vw,4rem);letter-spacing:-.04em;margin-bottom:14px}
h3{font-size:1.3rem;margin-bottom:8px}
p{margin-top:0}
.button{display:inline-flex;align-items:center;justify-content:center;gap:.7em;padding:14px 22px;border-radius:10px;background:var(--forest);color:#fff!important;font-weight:800;box-shadow:0 8px 20px rgba(11,77,46,.12);transition:.2s ease;border:1px solid var(--forest)}
.button:hover{transform:translateY(-2px);background:var(--forest-dark)}
.button-outline{background:rgba(255,255,255,.72);color:var(--forest)!important;border-color:var(--forest)}
.button-outline:hover{color:#fff!important}.button-small{padding:10px 16px;border-radius:9px}
.site-header{position:sticky;top:0;z-index:50;background:rgba(251,247,238,.94);backdrop-filter:blur(12px);border-bottom:1px solid rgba(11,77,46,.08)}
.admin-bar .site-header{top:32px}
.header-inner{height:84px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{width:250px;display:block}.brand img{width:100%;height:72px;object-fit:contain;object-position:left center}.primary-nav,.primary-menu{display:flex;align-items:center;gap:28px;font-size:.95rem;font-weight:700;margin:0;padding:0;list-style:none}.primary-nav>a:not(.button),.primary-menu>li>a{position:relative;padding:8px 0}.primary-nav>a:not(.button)::after,.primary-menu>li>a::after{content:"";position:absolute;left:0;right:100%;bottom:2px;height:2px;background:var(--sun);transition:.2s ease}.primary-nav>a:not(.button):hover::after,.primary-menu>li>a:hover::after{right:0}.primary-menu li:last-child a{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border-radius:9px;background:var(--forest);color:#fff}.primary-menu li:last-child a::after{display:none}.nav-toggle{display:none;background:none;border:0;padding:8px}.nav-toggle span{display:block;width:24px;height:2px;background:var(--forest);margin:5px 0}
.hero{position:relative;min-height:610px;overflow:hidden;background:linear-gradient(90deg,#fff9ed 0%,#fff7e8 36%,rgba(255,247,232,.08) 66%)}.hero::before{content:"";position:absolute;inset:0;background-image:url('assets/images/paper.webp');background-size:760px auto;opacity:.18;mix-blend-mode:multiply;pointer-events:none}.hero-art{position:absolute;right:-2%;top:0;width:68%;height:100%;background:url('assets/images/hero.webp') center/cover no-repeat;mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.25) 17%,#000 38%);-webkit-mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.25) 17%,#000 38%)}.hero-art::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(251,247,238,.98) 0%,rgba(251,247,238,.5) 16%,transparent 45%)}.hero-inner{min-height:610px;display:flex;align-items:center;position:relative;z-index:2}.hero-copy{max-width:600px;padding:72px 0}.hero-lede{font-size:1.18rem;max-width:530px;color:#385246;margin-bottom:28px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:28px}.micro-line{display:flex;align-items:center;gap:14px;color:#5e7469;font-weight:800;font-size:.66rem;letter-spacing:.22em}.micro-line span{width:26px;height:4px;border-radius:999px;background:var(--sun)}
.trust-strip{padding:42px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.trust-grid{display:grid;grid-template-columns:repeat(3,1fr)}.trust-item{text-align:center;padding:10px 42px;position:relative}.trust-item:not(:last-child)::after{content:"";position:absolute;right:0;top:14%;bottom:14%;width:1px;background:var(--line)}.trust-item h2{font-size:1.55rem;margin:10px 0 6px}.trust-item p{margin:0;color:var(--muted)}.icon-orb{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;margin:0 auto 8px}.icon-orb.green{background:#e4f2df}.icon-orb.gold{background:#fff0c5}.icon-orb.blue{background:#dff3ff}.brick-icon{width:28px;height:24px;border-radius:4px;background:var(--evergreen);position:relative;box-shadow:inset 0 -3px rgba(0,0,0,.08)}.icon-orb.gold .brick-icon{background:#e6a700}.brick-icon::before{content:"";position:absolute;width:12px;height:6px;border-radius:5px 5px 2px 2px;left:8px;top:-5px;background:inherit}.truck-icon{font-size:2rem;color:var(--river);font-weight:900}
.how{padding:80px 0;background:linear-gradient(rgba(232,247,224,.86),rgba(232,247,224,.88)),url('assets/images/layered-hills.webp') center/cover no-repeat}.section-heading{text-align:center;max-width:760px;margin:0 auto 44px}.section-heading .eyebrow{margin-bottom:8px}.section-heading h2{margin-bottom:0}.steps{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;gap:22px;align-items:center}.step{display:flex;gap:17px;align-items:flex-start;padding:24px;background:rgba(255,255,255,.64);border:1px solid rgba(11,77,46,.1);border-radius:16px;box-shadow:0 8px 30px rgba(11,77,46,.05)}.step p{color:var(--muted);margin:0}.step-number{flex:0 0 44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--forest);color:#fff;font-family:var(--serif);font-size:1.4rem;font-weight:800}.step-arrow{font-size:2rem;color:#e7a800}
.featured{padding:84px 0}.section-row{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:28px}.section-row h2{margin:0}.text-link{font-weight:800;color:var(--forest);border-bottom:1px solid currentColor}.product-grid,.inventory-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.product-card{background:rgba(255,255,255,.76);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:.22s ease}.product-card:hover{transform:translateY(-5px)}.product-photo{height:250px;display:grid;place-items:center;position:relative;overflow:hidden;background:linear-gradient(135deg,#f5e7c9,#eef4e5)}.product-photo::before{content:"";position:absolute;inset:0;background-image:url('assets/images/stud-texture.webp');background-size:420px;opacity:.065;mix-blend-mode:multiply;pointer-events:none}.product-photo img{width:100%;height:100%;object-fit:contain;padding:18px;position:relative;z-index:1}.product-photo>span:not(.featured-badge){position:relative;z-index:1;padding:10px 16px;border:1px dashed rgba(11,77,46,.45);border-radius:999px;color:var(--forest);font-weight:800;background:rgba(255,255,255,.6)}.product-info{padding:22px}.product-kicker{font-size:.75rem;text-transform:uppercase;letter-spacing:.12em;font-weight:800;color:var(--evergreen);margin-bottom:8px}.product-info h2,.product-info h3{font-size:1.45rem;margin-bottom:6px}.product-meta{color:var(--muted);font-size:.9rem;min-height:2.8em}.product-bottom{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:22px}.product-bottom strong{font-family:var(--serif);font-size:1.45rem;color:var(--forest-dark)}.button-card{padding:9px 14px;font-size:.84rem}.empty-featured{grid-column:1/-1;padding:42px;border:1px dashed var(--line);border-radius:var(--radius);background:rgba(255,255,255,.58);text-align:center}.empty-featured h3{font-size:1.7rem}.empty-featured p{margin-bottom:0;color:var(--muted)}
.story{position:relative;overflow:hidden;padding:90px 0 120px;min-height:540px}.story-corner{position:absolute;right:-5%;bottom:-20%;width:58%;height:115%;background:url('assets/images/corner-hills.webp') center/contain no-repeat;mix-blend-mode:multiply;opacity:.97}.story-inner{position:relative;z-index:2}.story-copy{max-width:600px}.story-copy p{color:#42584f}.story-copy>.button{margin-top:12px}.story-copy .micro-line{margin:28px 0 12px}
.site-footer{position:relative;background:var(--forest);color:#e9f5ed;padding:56px 0 20px;overflow:hidden}.footer-wave{position:absolute;left:-5%;right:-5%;top:-38px;height:85px;background:var(--forest);border-radius:50% 50% 0 0/80% 80% 0 0}.footer-grid{display:grid;grid-template-columns:1.2fr .8fr 1fr;gap:48px;position:relative}.footer-brand img{width:280px;filter:brightness(0) invert(1);opacity:.98}.footer-brand p{margin:8px 0 0;color:#cce4d5}.footer-links,.footer-menu{display:grid;gap:9px;align-content:start;font-weight:700;list-style:none;margin:0;padding:0}.footer-links a:hover,.footer-menu a:hover{color:var(--sun)}.footer-contact .eyebrow{color:var(--sun)}.footer-contact>a{font-family:var(--serif);font-size:1.3rem}.small{font-size:.78rem;color:#bdd7c7}.footer-bottom{border-top:1px solid rgba(255,255,255,.16);margin-top:38px;padding-top:18px;display:flex;justify-content:space-between;gap:24px;font-size:.78rem;color:#bcd6c6}
/* Inventory archive */
.inventory-hero{padding:86px 0 92px;position:relative;overflow:hidden;background:linear-gradient(90deg,rgba(251,247,238,.98),rgba(251,247,238,.74)),url('assets/images/layered-hills.webp') center/cover no-repeat}.inventory-hero::after{content:"";position:absolute;right:-6%;bottom:-42%;width:52%;aspect-ratio:1;background:url('assets/images/corner-hills.webp') center/contain no-repeat;opacity:.72}.inventory-hero-inner{position:relative;z-index:2;max-width:780px}.inventory-hero h1{font-size:clamp(3rem,5.5vw,5.5rem);margin-bottom:18px}.inventory-hero p:last-child{max-width:680px;font-size:1.12rem;color:#42584f}.inventory-section{padding:72px 0 96px}.inventory-grid{grid-template-columns:repeat(3,1fr)}.inventory-card .product-photo{height:290px}.featured-badge{position:absolute!important;top:14px;left:14px;z-index:3!important;background:var(--sun)!important;color:var(--forest-dark)!important;border:0!important;border-radius:999px!important;padding:7px 11px!important;font-weight:800!important;font-size:.72rem!important;letter-spacing:.04em!important}.pagination-wrap{margin-top:52px}.pagination .nav-links{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.page-numbers{display:inline-flex;min-width:42px;height:42px;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:9px;background:#fff;padding:0 12px;font-weight:700}.page-numbers.current,.page-numbers:hover{background:var(--forest);color:#fff}.empty-state{padding:80px 0;text-align:center}.empty-state p{color:var(--muted)}
/* Single inventory listing */
.single-listing{padding:34px 0 92px}.single-topbar{margin-bottom:22px}.back-link{display:inline-flex;align-items:center;color:var(--forest);font-weight:800;border-bottom:1px solid transparent}.back-link:hover{border-color:currentColor}.single-product-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(340px,.65fr);gap:42px;align-items:start}.single-product-image{min-height:580px;border:1px solid var(--line);border-radius:28px;display:grid;place-items:center;padding:36px;background:rgba(255,255,255,.8);box-shadow:var(--shadow);position:sticky;top:118px;overflow:hidden}.single-product-image::before{content:"";position:absolute;inset:0;background:url('assets/images/stud-texture.webp') center/540px;opacity:.045;mix-blend-mode:multiply}.single-product-image img{width:100%;height:auto;max-height:650px;object-fit:contain;position:relative;z-index:1}.single-image-placeholder{position:relative;z-index:1;color:var(--muted);font-weight:700}.single-product-info{padding:36px 8px}.single-product-info h1{font-size:clamp(2.8rem,4.3vw,4.8rem);margin-bottom:18px}.single-price{font-family:var(--serif);font-size:2.2rem;color:var(--forest);font-weight:800;margin:0 0 24px;padding-bottom:20px;border-bottom:1px solid var(--line)}.single-description{font-size:1.02rem;color:#385246}.single-description>*:last-child{margin-bottom:0}.buy-button{width:100%;font-size:1.08rem;padding:17px 22px;margin-top:30px}.listing-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px}.listing-tags span{padding:7px 10px;border-radius:999px;background:#e7f1e7;color:var(--forest);font-size:.75rem;font-weight:800}.single-next{border-top:1px solid var(--line);padding:50px 0 86px}.single-next-inner{display:flex;justify-content:space-between;align-items:center;gap:28px}.single-next h2{font-size:clamp(2rem,3vw,3.1rem);margin:0;max-width:700px}
/* Generic WordPress pages */
.generic-page{padding:82px 0 110px;min-height:62vh}.page-article h1{font-size:clamp(3rem,5vw,5rem)}.entry-content{color:#385246}.entry-content h2,.entry-content h3{margin-top:1.6em}.entry-content a:not(.button){color:var(--forest);text-decoration:underline;text-underline-offset:3px}.entry-content img{border-radius:14px}.simple-post{padding:28px 0;border-bottom:1px solid var(--line)}.simple-post h2{font-size:2rem}.error-page{text-align:center}.error-page p{font-size:1.1rem;color:var(--muted)}
.reveal{opacity:0;transform:translateY(16px);transition:opacity .55s ease,transform .55s ease}.reveal.visible{opacity:1;transform:none}
@media(max-width:980px){
  .admin-bar .site-header{top:46px}.brand{width:220px}.primary-nav,.primary-menu{position:absolute;left:20px;right:20px;top:78px;display:none;flex-direction:column;align-items:stretch;gap:4px;padding:18px!important;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}.primary-nav.open,.primary-nav.open .primary-menu,.primary-nav.open.primary-menu{display:flex}.primary-nav ul.primary-menu{position:static;box-shadow:none;border:0;padding:0!important}.primary-menu>li>a{display:block!important;padding:11px 12px!important;background:transparent!important;color:var(--ink)!important}.nav-toggle{display:block}.hero,.hero-inner{min-height:680px}.hero-art{width:100%;height:50%;top:auto;bottom:0;right:0;mask-image:linear-gradient(180deg,transparent 0,#000 28%);-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 28%)}.hero-art::after{background:linear-gradient(180deg,rgba(251,247,238,.95),transparent 38%)}.hero-inner{align-items:flex-start}.hero-copy{padding-top:70px}.trust-grid{grid-template-columns:1fr}.trust-item{padding:26px}.trust-item:not(:last-child)::after{top:auto;left:15%;right:15%;bottom:0;height:1px;width:auto}.steps{grid-template-columns:1fr}.step-arrow{transform:rotate(90deg);text-align:center}.product-grid,.inventory-grid{grid-template-columns:1fr 1fr}.story-corner{opacity:.33;width:86%;right:-25%}.footer-grid{grid-template-columns:1fr 1fr}.footer-contact{grid-column:1/-1}.single-product-layout{grid-template-columns:1fr}.single-product-image{position:relative;top:auto;min-height:460px}.single-product-info{padding:12px 0 0}.single-next-inner{align-items:flex-start;flex-direction:column}.inventory-hero::after{opacity:.28;width:78%}
}
@media(max-width:640px){
  :root{--shell:min(100% - 28px,1180px)}.header-inner{height:74px}.brand{width:190px}.brand img{height:64px}.hero,.hero-inner{min-height:700px}.hero-copy{padding-top:52px}.hero-actions{align-items:stretch}.hero-actions .button{width:100%}.trust-strip{padding:22px 0}.how,.featured{padding:62px 0}.product-grid,.inventory-grid{grid-template-columns:1fr}.section-row{align-items:flex-start;flex-direction:column}.story{padding:70px 0 270px}.story-corner{width:130%;height:70%;right:-32%;bottom:-7%;opacity:.8}.footer-grid{grid-template-columns:1fr}.footer-contact{grid-column:auto}.footer-bottom{flex-direction:column}.footer-brand img{width:230px}.inventory-hero{padding:62px 0 68px}.inventory-section{padding:50px 0 72px}.inventory-card .product-photo{height:260px}.single-listing{padding:24px 0 68px}.single-product-image{min-height:320px;padding:20px;border-radius:20px}.single-product-info h1{font-size:2.8rem}.single-product-info{padding-top:6px}.single-next{padding:42px 0 65px}.generic-page{padding:62px 0 80px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.reveal{opacity:1;transform:none;transition:none}.button,.product-card{transition:none}}
