@font-face{font-family:'Poppins';src:url('../assets/fonts/poppins.woff2') format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:'Bricolage Grotesque';src:url('../assets/fonts/bricolage.woff2') format('woff2');font-weight:100 900;font-display:swap}
.templates-page h1,.templates-page h2,.templates-page h3{font-family:'Bricolage Grotesque',sans-serif;font-weight:500}
.templates-page button,.templates-page input{font:inherit}
.templates-page button{cursor:pointer}
.templates-page [hidden]{display:none!important}
.templates-page :focus-visible{outline:3px solid var(--blue);outline-offset:5px}
.sr-only,.template-skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.template-skip:focus{position:fixed;top:12px;left:12px;z-index:999;background:white;padding:14px;border:2px solid var(--blue)}
.template-hero{margin-top:38px;display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:48px;padding:58px 54px;border-radius:26px;background:linear-gradient(115deg,#eef2ff 0%,#f5f6ff 56%,#e9edff 100%);overflow:hidden}
.template-eyebrow{font-size:10px;letter-spacing:.13em;color:var(--blue);font-weight:600}
.template-hero h1{font-size:clamp(38px,4.1vw,58px);line-height:1.06;letter-spacing:-.05em;margin:20px 0}
.template-hero h1 em{font-style:normal;color:var(--blue)}
.template-hero-copy>p{font-size:14px;line-height:1.85;max-width:440px;color:#525b70;margin:0 0 26px}
.hero-caption{display:block;font-size:10px;color:#636c81;margin-top:14px}
.opening-illustration{margin:0;min-width:0}
.opening-illustration img{width:100%;height:auto;filter:drop-shadow(0 16px 24px #19368a0d)}
.template-featured{padding-top:52px;padding-bottom:42px}
.template-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:12px}
.template-section-head h2{font-size:23px;letter-spacing:-.035em;margin:0}

.featured-categories{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.featured-category{display:flex;align-items:center;gap:12px;padding:20px 16px;text-align:left;border:1px solid #e2e6ed;border-radius:12px;background:#fff;min-height:88px;color:var(--ink);font-size:14px;line-height:1.45;transition:border-color .2s,background-color .2s}
.featured-icon{display:grid;place-items:center;width:26px;height:26px;flex:0 0 26px;color:#4b5668}
.featured-icon svg{width:24px;height:24px;stroke-width:1.7}
.category-arrow{display:grid;place-items:center;width:20px;height:20px;flex:0 0 20px;margin-left:auto;color:#0033ff}
.category-arrow svg{width:17px;height:17px}
.featured-category:hover,.featured-category[aria-pressed=true]{border-color:#aebeff;background:#f8faff}
.featured-category:hover .featured-icon,.featured-category[aria-pressed=true] .featured-icon{color:var(--blue)}
.template-library{display:grid;grid-template-columns:260px minmax(0,1fr);gap:30px;padding-top:35px;padding-bottom:58px;border-top:1px solid var(--line);scroll-margin-top:110px}
.template-sidebar{align-self:start;position:sticky;top:110px}
.template-sidebar h2{font-size:17px;margin:0 0 18px}
.category-filters{display:grid;gap:4px}
.category-filters button{border:0;background:none;display:flex;align-items:center;gap:10px;border-radius:10px;padding:10px;font-size:14px;line-height:1.45;color:#515b6c;text-align:left;min-height:48px}
.filter-icon{display:grid;place-items:center;width:20px;height:20px;flex:0 0 20px;color:#626873}
.filter-icon svg{width:17px;height:17px}
.filter-label{flex:1;min-width:0}
.category-filters button[aria-pressed=true]{background:#eef2ff;color:var(--blue);font-weight:500}
.category-filters button:hover{background:#f5f6fa}
.category-count{font-size:11px;color:#737d8f;margin-left:auto;padding-left:4px}
.category-filters button[aria-pressed=true] .category-count{color:var(--blue)}
.sidebar-note{border-top:1px solid var(--line);margin-top:26px;padding:24px 10px}
.sidebar-note>span{color:var(--blue);font-size:24px}
.sidebar-note h3{font-size:20px;letter-spacing:-.035em;line-height:1.2;margin:12px 0}
.sidebar-note p{font-size:11px;color:var(--muted);line-height:1.8}
.library-toolbar{display:flex;justify-content:space-between;align-items:center;gap:22px}
.library-toolbar h2{font-size:32px;letter-spacing:-.04em;margin:0}
.template-search{display:flex;align-items:center;gap:10px;width:240px;flex-shrink:0;padding:10px 16px;background:#eff0f2;border:1px solid #e3e5e9;border-radius:999px}
.template-search svg{width:18px;height:18px;flex-shrink:0;fill:none;stroke:#818894;stroke-width:1.7;stroke-linecap:round}
.template-search input{min-width:0;width:100%;border:0;background:transparent;font:400 14px Poppins,sans-serif;color:#303744;outline:none}
.template-search input::placeholder{color:#818894}
.template-search:focus-within{outline:2px solid var(--blue);outline-offset:3px}
.template-search input:focus-visible{outline:none}
.library-status{display:flex;align-items:center;justify-content:flex-end;margin:20px 0;gap:15px}
.library-status p{font-size:11px;color:var(--muted)}
.library-status button{border:0;background:none;color:var(--blue);font-size:11px}
.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 18px}
.template-card{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:13px;overflow:hidden;transition:border-color .2s,box-shadow .2s}
.template-card:hover{border-color:#aabaff;box-shadow:0 8px 24px #213a8510}
.template-preview{padding:0;background:#fafbfc;border-bottom:1px solid var(--line);aspect-ratio:440/270;overflow:hidden}
.template-preview img{width:100%;height:100%;object-fit:contain}
.template-copy{display:flex;flex-direction:column;flex:1;padding:18px}
.template-category{display:inline-flex;align-self:flex-start;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;background:var(--category-soft);font-size:11px;font-weight:500;color:#303b50;line-height:1.5}
.template-category svg{width:16px;height:16px;flex-shrink:0;color:var(--category-color);stroke-width:1.8}
.template-copy h3{font-size:23px;line-height:1.15;letter-spacing:-.035em;margin:10px 0 8px}
.template-copy>p{font-size:12px;color:#4f596b;line-height:1.6;margin:0 0 16px}
.template-bottom{display:flex;justify-content:flex-end;align-items:center;margin-top:auto}
.template-use{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#eaf0ff;color:var(--blue);transition:background-color .2s,color .2s}
.template-use svg{width:19px;height:19px}
.template-card:hover .template-use,.template-card:focus-visible .template-use{background:var(--blue);color:white}

.template-empty{text-align:center;background:#f7f8fb;border-radius:12px;padding:50px 20px}.template-empty h3{font-size:25px}.template-empty p{font-size:12px;color:var(--muted)}
.template-how{padding:48px 0 70px;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 2fr;gap:48px}
.template-how h2{font-size:37px;letter-spacing:-.04em;line-height:1.08;margin:16px 0}
.template-how ol{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:0;margin:6px 0;gap:26px;align-items:stretch}
.template-how li{position:relative;padding:20px 17px;border:1px solid #dce3f0;border-radius:14px;background:#fff;box-shadow:0 4px 14px #19356b06}
.template-how li:not(:last-child):after{content:'';position:absolute;left:100%;top:50%;width:28px;border-top:2px solid #c6d2ef}
.template-how li:before{content:'';position:absolute;left:-5px;top:calc(50% - 4px);width:8px;height:8px;background:white;border:1.5px solid #97abe0;border-radius:50%;z-index:1}
.template-how li:last-child{border-color:#abc0ff;background:#f6f8ff}
.workflow-step-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.workflow-step-icon{display:grid;place-items:center;width:34px;height:34px;background:#eef2ff;border-radius:9px;color:var(--blue)}
.workflow-step-icon svg{width:20px;height:20px}
.workflow-step-number{font-size:10px;letter-spacing:.08em;color:#707d94}
.template-how h3{font-size:21px;margin:16px 0 9px;letter-spacing:-.025em}
.template-how p{font-size:11px;color:var(--muted);line-height:1.8;margin:0}
@media(min-width:1500px){.template-hero{padding-top:70px;padding-bottom:70px}}
@media(max-width:1100px){.template-hero{padding:40px 32px;gap:30px}.template-library{grid-template-columns:230px minmax(0,1fr);gap:24px}.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.featured-category{font-size:12px;padding:16px 12px;gap:9px}.template-how{gap:28px}}
@media(max-width:760px){.template-hero{grid-template-columns:1fr;padding:32px 24px;gap:32px;margin-top:22px}.template-hero h1{font-size:42px}.template-featured{padding-top:32px;padding-bottom:30px}.template-section-head{align-items:start}.featured-categories{grid-template-columns:repeat(2,1fr)}.featured-category:last-child{grid-column:1/-1}.featured-category{font-size:13px;min-height:78px;padding:16px 12px}.template-library{grid-template-columns:1fr;padding-top:24px;gap:24px}.template-sidebar{position:static}.template-sidebar h2{margin-bottom:12px}.category-filters{display:flex;overflow-x:auto;padding-bottom:8px;gap:6px}.category-filters button{white-space:nowrap;border:1px solid var(--line);gap:10px;flex-shrink:0}.sidebar-note{display:none}.library-toolbar{align-items:start;flex-direction:column;gap:18px}.library-toolbar h2{font-size:30px}.template-search{width:100%}.template-grid{gap:16px}.template-copy{padding:20px}.template-copy h3{font-size:24px}.template-bottom{flex-wrap:wrap;gap:10px}.template-how{grid-template-columns:1fr;gap:24px;padding:35px 0}.template-how ol{gap:18px}.template-how h3{font-size:19px}}
@media(max-width:600px){.template-grid{grid-template-columns:1fr}.template-copy{padding:18px}.template-copy h3{font-size:24px}.template-how ol{grid-template-columns:1fr;gap:24px}.template-how li:not(:last-child):after{left:50%;top:100%;width:0;height:26px;border-top:0;border-left:2px solid #c6d2ef}.template-how li:before{left:calc(50% - 4px);top:-5px}.template-how h3{margin-top:9px}.template-hero h1{font-size:36px}}
@media(prefers-reduced-motion:reduce){.template-card,.featured-category,.template-use{transition:none}}
@media print{.template-sidebar,.template-search,.featured-categories,.library-status button{display:none}.template-library{grid-template-columns:1fr}.template-card{break-inside:avoid}.template-grid{grid-template-columns:repeat(2,1fr)}}
/* Allow the horizontally scrollable category list to shrink inside the grid. */
.template-sidebar,.template-results{min-width:0}
@media(max-width:760px){.template-library{grid-template-columns:minmax(0,1fr)}}

/* Category colours are shared by featured tiles and template cards. */
[data-category],[data-category-filter]{--category-color:#2858c8;--category-soft:#e8efff}
[data-category="retail"],[data-category-filter="retail"]{--category-color:#2858c8;--category-soft:#e8efff}
[data-category="restaurants"],[data-category-filter="restaurants"]{--category-color:#b75516;--category-soft:#fff0e0}
[data-category="healthcare"],[data-category-filter="healthcare"]{--category-color:#087d70;--category-soft:#def3ed}
[data-category="hospitality"],[data-category-filter="hospitality"]{--category-color:#7946b4;--category-soft:#f0e7fb}
[data-category="franchise"],[data-category-filter="franchise"]{--category-color:#b23f66;--category-soft:#fce7ef}
[data-category="fitness"],[data-category-filter="fitness"]{--category-color:#578020;--category-soft:#edf5dc}
[data-category="salons"],[data-category-filter="salons"]{--category-color:#ac3d88;--category-soft:#fae7f5}
[data-category="commercial"],[data-category-filter="commercial"]{--category-color:#316d85;--category-soft:#e2f1f6}
[data-category="renovations"],[data-category-filter="renovations"]{--category-color:#956712;--category-soft:#faf0d8}
@media(max-width:760px){.opening-illustration{max-width:500px;width:100%;margin:auto}}

/* Category pages: a quiet introduction and a full-width template collection. */
.category-intro{padding-top:34px;padding-bottom:35px}
.template-breadcrumb{display:flex;align-items:center;gap:14px;font-size:13px;color:#7a808a}
.template-breadcrumb a:hover{color:var(--blue)}
.template-breadcrumb [aria-current]{color:#222a36}
.category-intro h1{font-size:clamp(42px,5.4vw,74px);letter-spacing:-.055em;line-height:1.04;margin:65px 0 40px;max-width:1040px}
.category-tabs{display:flex;gap:9px;flex-wrap:wrap}
.category-tabs button{border:0;border-radius:999px;background:#f3f4f6;padding:13px 20px;font-size:15px;color:#303744;line-height:1.4;transition:background-color .2s}
.category-tabs button[aria-pressed=true]{background:var(--category-soft);color:#0033ff;font-weight:500}
.category-tabs button:hover{background:#e9edfa}
.category-view .template-library{display:block;border-top:0;padding-top:0}
.category-view .template-sidebar,.category-view .template-hero,.category-view .template-featured{display:none}
.category-view .library-toolbar{justify-content:flex-end;margin-bottom:25px}
.category-view #library-title{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.category-view .library-status{margin:0 0 20px}









@media(max-width:760px){.category-intro{padding-top:24px;padding-bottom:26px}.category-intro h1{font-size:43px;margin:40px 0 28px}.category-tabs{flex-wrap:nowrap;overflow-x:auto;padding:3px 3px 10px}.category-tabs button{white-space:nowrap;flex-shrink:0;padding:11px 16px}.category-view .library-toolbar{align-items:stretch}}
@media(prefers-reduced-motion:reduce){.category-tabs button{transition:none}}
.category-view .library-status{margin:0}
.category-view .library-status:has(#template-reset:not([hidden])){margin-bottom:20px}

.sidebar-note h3{margin:0 0 16px;font-size:22px}
.sidebar-cta{padding:11px 18px;font-size:13px}

/* Reuse the hub card components; the wider category page adds a column. */
.category-view .template-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1100px){.category-view .template-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.category-view .template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.category-view .template-grid{grid-template-columns:minmax(0,1fr)}}

.template-pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:28px;color:#515b6c;font-size:13px}
.template-page-button{min-width:94px;padding:10px 16px;border:1px solid #dce1ea;border-radius:999px;background:#fff;color:var(--ink);font-size:13px;transition:border-color .2s,background-color .2s,color .2s}
.template-page-button:not(:disabled):hover{border-color:#aebeff;background:#f8faff;color:var(--blue)}
.template-page-button:disabled{cursor:not-allowed;opacity:.45}
@media(prefers-reduced-motion:reduce){.template-page-button{transition:none}}
.template-page-button.template-page-next{display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:0;border-color:var(--blue);border-radius:50%;background:var(--blue);color:#fff}
.template-page-next svg{width:20px;height:20px}
.template-page-button.template-page-next:not(:disabled):hover{border-color:#0028cc;background:#0028cc;color:#fff}
.template-page-button.template-page-next:disabled{border-color:#9aadef;background:#9aadef;opacity:1}

/* The template hub uses the same focused catalog layout as its category views. */
.templates-page .template-library{display:block;border-top:0;padding-top:0}
.templates-page .template-sidebar,.templates-page .template-hero,.templates-page .template-featured{display:none}
.templates-page .library-toolbar{justify-content:flex-end;margin-bottom:25px}
.templates-page #library-title{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.templates-page .library-status{margin:0}
.templates-page .library-status:has(#template-reset:not([hidden])){margin-bottom:20px}
.templates-page .template-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1100px){.templates-page .template-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.templates-page .template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.templates-page .template-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){.templates-page .library-toolbar{align-items:stretch}}
