/*
Theme Name: Shop Mobile Home Doors
Theme URI: https://www.shopmobilehomedoors.com/
Author: RWS
Description: A fast, responsive door referral catalog theme with accessible navigation, category layouts, product specifications, and SEO fallbacks. Pair with Shop Mobile Home Doors Catalog. No page builder or WooCommerce required.
Version: 1.0.3
Requires at least: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: smhd
*/
:root{--smhd-ink:#392b22;--smhd-text:#51453c;--smhd-accent:#765132;--smhd-accent-dark:#563b25;--smhd-sand:#f5f1e9;--smhd-soft:#f8f5ef;--smhd-border:#e3dbcf;--smhd-muted:#6e6357;--smhd-radius:12px;--smhd-wrap:1200px}
*,*::before,*::after{box-sizing:border-box}html{scroll-padding-top:160px}body{margin:0;background:#fff;color:var(--smhd-text);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.65;-webkit-font-smoothing:antialiased}img{display:block;max-width:100%;height:auto}svg{display:block}a{color:var(--smhd-accent);text-decoration-thickness:1px;text-underline-offset:4px}a:hover{color:var(--smhd-accent-dark)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #b46d24;outline-offset:4px}h1,h2,h3,h4{color:var(--smhd-ink);line-height:1.15;letter-spacing:-.035em;margin:0 0 18px;font-weight:700}h1{font-size:clamp(2.2rem,4.2vw,3.7rem)}h2{font-size:clamp(1.7rem,2.8vw,2.5rem)}h3{font-size:1.22rem;letter-spacing:-.015em}p{margin:0 0 20px}ul,ol{padding-left:24px}.wrap{width:min(var(--smhd-wrap),calc(100% - 64px));margin-inline:auto}.section{padding-block:76px}.narrow{max-width:860px}.section-soft{background:var(--smhd-soft)}.eyebrow{text-transform:uppercase;letter-spacing:.13em;font-size:.72rem;font-weight:750;color:var(--smhd-accent);margin:0 0 16px;line-height:1.5}.topbar{background:var(--smhd-ink);color:#eef5f3;font-size:.76rem;padding:9px 0}.topbar .wrap{display:flex;justify-content:space-between;gap:16px}.topbar a{color:#fff;text-decoration:none}.site-header{background:#fff;position:sticky;top:0;z-index:40;box-shadow:0 1px 0 var(--smhd-border)}.admin-bar .site-header{top:32px}.header-main{display:flex;align-items:center;justify-content:space-between;gap:36px;padding-block:14px;min-height:88px}.brand{flex-shrink:0}.brand img{width:180px;height:60px;object-fit:contain}.custom-logo-link{display:block}.header-search{width:370px;max-width:45%}.search-form{display:flex;align-items:stretch;position:relative;width:100%}.search-form input[type=search]{min-width:0;flex:1;width:100%;border:1px solid var(--smhd-border);border-radius:6px 0 0 6px;background:#fafcfc;padding:12px 14px;color:var(--smhd-ink);font-size:.9rem;line-height:1.5}.search-form button{display:grid;place-items:center;background:var(--smhd-accent);color:#fff;border:0;border-radius:0 6px 6px 0;width:48px;flex-shrink:0}.main-nav{border-top:1px solid #eef1f0}.nav-list{display:flex;align-items:center;gap:34px;list-style:none;padding:0;margin:0}.nav-list>li{position:relative}.nav-list a{display:block;padding:14px 0;font-size:.84rem;font-weight:650;color:var(--smhd-ink);text-decoration:none;white-space:nowrap}.nav-list a:hover,.nav-list .current-menu-item>a{color:var(--smhd-accent);text-decoration:underline}.nav-list ul{display:none;position:absolute;top:100%;left:0;min-width:220px;padding:10px 20px;list-style:none;background:#fff;border:1px solid var(--smhd-border);box-shadow:0 8px 22px #392b2214}.nav-list li:hover>ul,.nav-list li:focus-within>ul{display:block}.nav-list ul ul{left:100%;top:0}.menu-toggle{display:none}.hero{background:var(--smhd-sand);overflow:hidden}.hero-grid{display:grid;grid-template-columns:1.08fr 1fr;gap:52px;align-items:center;padding-block:64px}.hero-copy h1{max-width:630px}.hero-description{font-size:1.02rem;max-width:550px;line-height:1.75;margin-bottom:28px}.button-row{display:flex;align-items:center;gap:24px;flex-wrap:wrap}.button{display:inline-flex;align-items:center;justify-content:center;gap:18px;border:1px solid var(--smhd-accent);border-radius:5px;padding:14px 22px;background:var(--smhd-accent);color:#fff;text-decoration:none;font-weight:650;line-height:1.45;font-size:.9rem;min-height:48px}.button:hover{background:var(--smhd-accent-dark);border-color:var(--smhd-accent-dark);color:#fff}.button-outline{background:transparent;color:var(--smhd-accent)}.button-outline:hover{color:#fff}.text-link{display:inline-flex;align-items:center;gap:14px;font-size:.87rem;font-weight:700;text-decoration:none;min-height:40px}.text-link:hover{text-decoration:underline}.hero-note{font-size:.74rem;color:var(--smhd-muted);margin:21px 0 0}.hero-image{position:relative;border-radius:var(--smhd-radius);overflow:hidden;min-height:388px;background:#dfe9e5;isolation:isolate}.hero-image>img{width:100%;height:388px;object-fit:cover;object-position:center}.hero-image::after{content:"";position:absolute;inset:42% 0 0;background:linear-gradient(transparent,#392b22d9);z-index:0}.image-caption{position:absolute;inset:auto 28px 28px;z-index:1;color:#fff}.image-caption span{display:block;font-size:.73rem;text-transform:uppercase;letter-spacing:.12em;margin-bottom:8px}.image-caption strong{display:block;font-size:1.6rem;line-height:1.2;letter-spacing:-.025em}.benefit-strip{border-bottom:1px solid var(--smhd-border);background:#fff}.benefit-strip .wrap{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;padding-block:20px}.benefit-strip span{font-size:.83rem;font-weight:650;color:var(--smhd-ink);display:flex;align-items:center;gap:14px}.benefit-strip b{font-size:.7rem;color:var(--smhd-accent);background:var(--smhd-soft);border-radius:50%;width:30px;height:30px;display:grid;place-items:center}.section-heading{display:flex;justify-content:space-between;gap:24px;align-items:end;margin-bottom:28px}.section-heading h2{margin:0}.section-heading .eyebrow{margin-bottom:10px}.category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.category-card,.product-card,.article-card{border:1px solid var(--smhd-border);border-radius:var(--smhd-radius);overflow:hidden;background:#fff}.category-image{display:block;background:#f8faf9;padding:24px 10px}.category-image img{width:100%;height:155px;object-fit:contain;mix-blend-mode:multiply}.category-content{padding:24px 22px}.category-content h3{margin-bottom:10px}.category-content h3 a,.product-card h2 a,.article-card h2 a{text-decoration:none;color:var(--smhd-ink)}.category-content h3 a:hover,.product-card h2 a:hover,.article-card h2 a:hover{text-decoration:underline}.category-content p{font-size:.85rem;line-height:1.75;min-height:92px;margin-bottom:14px}.category-content .text-link{font-size:.8rem;gap:10px}.planning-section{background:var(--smhd-sand)}.planning-grid{display:grid;grid-template-columns:1fr 1.1fr;gap:100px;align-items:start}.planning-grid>div>p{max-width:460px}.planning-grid h2{max-width:420px}.planning-grid .button{margin-top:4px}.planning-steps article{display:flex;gap:22px;padding-block:23px;border-bottom:1px solid #d8ddd6}.planning-steps article:first-child{padding-top:0}.planning-steps article:last-child{border-bottom:0;padding-bottom:0}.planning-steps article>span{font-size:.78rem;font-weight:750;color:var(--smhd-accent);line-height:1.4;padding-top:4px}.planning-steps h3{font-size:1.05rem;margin-bottom:8px}.planning-steps p{font-size:.9rem;margin:0}.site-footer{background:var(--smhd-ink);color:#d1dddc;padding-top:55px;font-size:.85rem}.footer-grid{display:grid;grid-template-columns:1.1fr .8fr 1.1fr;gap:80px;padding-bottom:40px}.footer-brand{font-size:1.3rem;font-weight:700;line-height:1.35;color:#fff;letter-spacing:-.03em}.footer-brand span{display:block;color:#b7d6d0;font-size:.82rem;font-weight:500;letter-spacing:0;margin-top:6px}.site-footer h2{font-size:.95rem;color:#fff;letter-spacing:0;margin-bottom:16px}.site-footer ul{list-style:none;margin:0;padding:0}.site-footer li{margin-bottom:8px}.site-footer a{color:#e6f2ef;text-decoration:none}.site-footer a:hover{text-decoration:underline}.footer-shop{font-weight:700;display:inline-block;min-height:36px}.footer-bottom{border-top:1px solid #ffffff26;padding-block:20px;font-size:.75rem;display:flex;justify-content:space-between;gap:20px}.footer-bottom>div{display:flex;gap:18px}.footer-links{display:flex;gap:18px}.breadcrumbs{padding-top:24px;color:var(--smhd-muted);font-size:.77rem}.breadcrumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:9px;padding:0;margin:0}.breadcrumbs li{display:flex;align-items:center;gap:9px}.breadcrumbs li+li::before{content:"/";color:#748b8e}.breadcrumbs a{text-decoration:none}.breadcrumbs a:hover{text-decoration:underline}.page-heading{margin-bottom:40px;max-width:850px}.page-heading h1{font-size:clamp(2rem,4vw,3rem)}.page-heading p:last-child{margin-bottom:0}.catalog-section{padding-top:44px}.catalog-layout{display:grid;grid-template-columns:225px minmax(0,1fr);gap:36px}.catalog-sidebar{align-self:start;border:1px solid var(--smhd-border);padding:24px 18px;border-radius:8px}.catalog-sidebar h2{font-size:1rem;letter-spacing:0}.catalog-sidebar ul{list-style:none;margin:0 0 24px;padding:0}.catalog-sidebar li a{display:block;padding:9px 0;font-size:.87rem;text-decoration:none}.catalog-sidebar li a[aria-current]{font-weight:750;color:var(--smhd-ink)}.catalog-sidebar .search-form input{padding:10px;font-size:.8rem}.catalog-sidebar .search-form button{width:36px}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.catalog-results .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.product-image{display:flex;align-items:center;justify-content:center;aspect-ratio:4/3;background:var(--smhd-soft);padding:20px;text-decoration:none}.product-image img{width:100%;height:100%;object-fit:contain}.product-card-content{padding:22px}.product-card h2{font-size:1.1rem;line-height:1.4;letter-spacing:-.015em}.product-card p{font-size:.85rem}.product-category{color:var(--smhd-accent);font-weight:650;text-transform:uppercase;letter-spacing:.08em;font-size:.65rem!important;margin-bottom:10px}.image-placeholder{color:var(--smhd-muted);font-size:.85rem;text-align:center}.results-count{font-size:.82rem;color:var(--smhd-muted);margin-bottom:18px}.empty-state{background:var(--smhd-soft);padding:40px;border:1px solid var(--smhd-border);border-radius:var(--smhd-radius)}.empty-state h2{font-size:1.7rem}.pagination{margin-top:36px}.pagination .nav-links{display:flex;flex-wrap:wrap;gap:8px}.page-numbers{padding:8px 14px;border:1px solid var(--smhd-border);border-radius:4px;text-decoration:none}.page-numbers.current{background:var(--smhd-ink);color:#fff}.product-detail{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:start}.product-detail-image{border:1px solid var(--smhd-border);border-radius:var(--smhd-radius);padding:34px;background:var(--smhd-soft);min-height:350px;display:flex;align-items:center;justify-content:center}.product-detail-image img{max-height:530px;width:100%;object-fit:contain}.product-summary h1{font-size:clamp(1.9rem,3vw,2.7rem)}.product-intro{font-size:1.05rem}.product-specs{margin:26px 0}.product-specs>div{display:grid;grid-template-columns:1fr 1.3fr;gap:16px;border-bottom:1px solid var(--smhd-border);padding:11px 0;font-size:.9rem}.product-specs dt{font-weight:650;color:var(--smhd-ink)}.product-specs dd{margin:0;overflow-wrap:anywhere}.purchase-note{font-size:.8rem;color:var(--smhd-muted);margin:16px 0}.product-description{margin-top:60px;max-width:850px}.prose{overflow-wrap:anywhere}.prose h2{margin-top:40px}.prose h3{margin-top:30px}.prose img{border-radius:8px}.prose figure{max-width:100%;margin-inline:0}.prose table{border-collapse:collapse;width:100%;font-size:.9rem}.prose th,.prose td{padding:12px;border:1px solid var(--smhd-border);text-align:left}.prose blockquote{margin:24px 0;padding:12px 24px;border-left:3px solid var(--smhd-accent);background:var(--smhd-soft)}.prose iframe{max-width:100%}.wp-caption{max-width:100%}.wp-caption-text,.gallery-caption{font-size:.85rem;color:var(--smhd-muted)}.alignleft{float:left;margin:0 24px 20px 0}.alignright{float:right;margin:0 0 20px 24px}.aligncenter{margin-inline:auto}.sticky,.bypostauthor{color:inherit}.article-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.article-card>div{padding:26px}.article-card>a>img{width:100%;aspect-ratio:16/10;object-fit:cover}.article-card h2{font-size:1.4rem}.article-card p{font-size:.9rem}.post-navigation{margin-top:42px;border-top:1px solid var(--smhd-border);padding-top:24px}.post-navigation .nav-links{display:flex;justify-content:space-between;gap:25px}.search-result{padding-block:28px;border-bottom:1px solid var(--smhd-border)}.search-result h2{font-size:1.5rem}.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}.skip-link{position:fixed;top:12px;left:12px;z-index:99999;transform:translateY(-200%);padding:12px 20px;background:#fff;color:var(--smhd-ink);border:2px solid var(--smhd-ink);border-radius:4px}.skip-link:focus{transform:none}
@media(min-width:1500px){.hero-grid{padding-block:80px;gap:70px}.hero-image,.hero-image>img{height:420px}}
@media(max-width:1100px){.nav-list{gap:24px}.hero-grid{gap:30px}.hero-image,.hero-image>img{min-height:360px;height:360px}.category-grid{gap:16px}.category-content{padding:20px 16px}.category-content p{min-height:115px}.planning-grid{gap:50px}.footer-grid{gap:45px}.catalog-layout{grid-template-columns:200px minmax(0,1fr);gap:24px}.catalog-results .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.wrap{width:calc(100% - 40px)}.hero-grid{grid-template-columns:1fr 1fr;padding-block:46px}.hero h1{font-size:2.7rem}.hero-image,.hero-image>img{height:380px}.button-row{gap:10px}.hero-description{font-size:.94rem}.category-grid,.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.category-content p{min-height:0}.category-image img{height:175px}.has-js .menu-toggle{display:flex;align-items:center;gap:12px;border:1px solid var(--smhd-border);border-radius:5px;padding:10px 14px;background:#fff;color:var(--smhd-ink);font-size:.85rem;font-weight:650}.header-main{gap:20px}.header-search{width:auto;flex:1;max-width:400px}.has-js .main-nav{display:none}.has-js .main-nav.is-open{display:block;max-height:65vh;overflow:auto}.nav-list{display:block;padding-block:8px}.nav-list a{padding:12px 0;white-space:normal}.nav-list ul{display:block;position:static;border:0;box-shadow:none;background:var(--smhd-soft);min-width:0;margin-bottom:8px;padding-block:0}.nav-list ul ul{padding-left:14px}.planning-grid{gap:35px}.footer-grid{gap:30px}.product-detail{gap:30px}.article-grid{grid-template-columns:repeat(2,minmax(0,1fr))}html{scroll-padding-top:115px}}
@media(max-width:640px){.wrap{width:calc(100% - 32px)}body{font-size:15px}.topbar{font-size:.68rem;padding-block:7px}.topbar .wrap{justify-content:center}.topbar .wrap>span{display:none}.header-main{min-height:80px;flex-wrap:wrap;padding-block:10px;gap:12px}.brand img{width:150px;height:50px}.menu-toggle{margin-left:auto}.header-search{order:3;flex-basis:100%;max-width:none}.header-search input[type=search]{padding:9px 12px}.hero-grid{grid-template-columns:1fr;padding-block:36px;gap:28px}.hero h1{font-size:2.6rem}.hero-image,.hero-image>img{height:240px;min-height:240px}.hero-image>img{object-fit:cover}.hero-copy .eyebrow{font-size:.65rem}.hero-note{font-size:.7rem}.image-caption{inset:auto 20px 20px}.image-caption strong{font-size:1.35rem}.benefit-strip .wrap{gap:10px;padding-block:16px}.benefit-strip span{display:block;font-size:.68rem;line-height:1.5;text-align:center}.benefit-strip b{margin:0 auto 7px}.section{padding-block:45px}.section-heading{align-items:start;gap:14px}.section-heading>.text-link{max-width:105px;font-size:.75rem;line-height:1.4}.section-heading h2{font-size:1.75rem}.category-grid{gap:12px}.category-image{padding:16px 6px}.category-image img{height:110px}.category-content{padding:18px 13px}.category-content h3{font-size:1.1rem}.category-content p{font-size:.78rem}.category-content .text-link{font-size:.74rem;gap:5px;line-height:1.4}.planning-grid,.footer-grid,.product-detail,.catalog-layout{grid-template-columns:1fr;gap:30px}.planning-grid h2{font-size:1.9rem}.planning-steps article{gap:16px}.footer-grid{gap:22px;padding-bottom:25px}.footer-grid>div:first-child{max-width:340px}.site-footer{padding-top:36px}.footer-bottom{flex-direction:column;gap:10px}.breadcrumbs{padding-top:18px}.catalog-sidebar{padding:18px}.catalog-sidebar ul{display:flex;flex-wrap:wrap;gap:4px 18px;margin-bottom:16px}.catalog-sidebar li a{padding:4px 0}.catalog-sidebar .search-form{max-width:400px}.catalog-section{padding-top:30px}.page-heading{margin-bottom:26px}.empty-state{padding:26px}.product-card-content{padding:16px}.product-card h2{font-size:1rem}.product-grid,.catalog-results .product-grid{gap:12px}.product-image{padding:10px}.product-card p{font-size:.78rem}.product-detail-image{min-height:250px;padding:24px}.product-description{margin-top:35px}.article-grid{grid-template-columns:1fr}.post-navigation .nav-links{flex-direction:column}.admin-bar .site-header{top:46px}html{scroll-padding-top:150px}.prose th,.prose td{padding:7px}}
@media(max-width:782px) and (min-width:641px){.admin-bar .site-header{top:46px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
@media print{.topbar,.main-nav,.menu-toggle,.header-search,.site-footer,.button-row,.catalog-sidebar,.shop-button{display:none!important}.site-header{position:static;box-shadow:none}.wrap{width:100%}.hero{background:white}.hero-image{display:none}.hero-grid,.product-detail{display:block}.section{padding-block:20px}a{color:inherit}}

/* Comfortable standalone touch targets; inline prose links retain text flow. */
.site-footer a{display:inline-flex;align-items:center;min-height:44px;min-width:44px;max-width:100%}
.site-footer li{margin-bottom:2px}
.footer-bottom>div,.footer-links{align-items:center;flex-wrap:wrap;row-gap:8px}
.text-link,.catalog-sidebar li a,.menu-toggle{min-height:44px}
.search-form button{min-height:44px;min-width:44px}
.search-form input[type=search]{min-height:44px}
.page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px}

/* Door photographs retain their full height in the shared catalog layout. */
.category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.category-image img{object-fit:contain}.hero-image img{height:100%;object-fit:cover}.product-detail-image img,.product-image img{object-fit:contain}@media(max-width:760px){.category-grid{grid-template-columns:1fr}}

/* Crisp, readable wordmark and a keyboard-accessible return control. */
.brand img{width:320px;max-width:100%;height:auto;min-height:70px;object-fit:contain}.brand a{display:block}
.back-to-top{position:fixed;right:24px;bottom:24px;z-index:60;display:grid;place-items:center;width:48px;height:48px;border:2px solid #fff;border-radius:50%;background:var(--smhd-accent-dark);color:#fff;box-shadow:0 3px 14px #392b2233;text-decoration:none}.back-to-top:hover{background:var(--smhd-ink);color:#fff}
.has-js .back-to-top{visibility:hidden;opacity:0;pointer-events:none;transition:opacity .18s ease}.has-js .back-to-top.is-visible{visibility:visible;opacity:1;pointer-events:auto}
@media(max-width:600px){.brand{max-width:calc(100% - 94px)}.brand img{width:238px;min-height:0}.back-to-top{right:16px;bottom:16px}}
@media(prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
@media print{.back-to-top{display:none!important}}
