/*!
 * ToolHub theme stylesheet.
 * Brand: navy #0a1628 / green accent #1D9E75.
 * No framework, no build step — plain CSS with custom properties.
 */

/* ---------------------------------------------------------------- */
/* Reset & base                                                      */
/* ---------------------------------------------------------------- */
:root{
	--th-navy:#0a1628;
	--th-navy-light:#132238;
	--th-green:#1D9E75;
	--th-green-dark:#167a5c;
	--th-border:#e2e8f0;
	--th-muted:#64748b;
	--th-bg:#f8fafc;
	--th-text:#1e293b;
	--th-radius:14px;
	--th-max:1200px;
	--th-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
	margin:0; font-family:var(--th-font); color:var(--th-text); background:#fff;
	font-size:16px; line-height:1.65; -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--th-green-dark); text-decoration:none; }
a:hover{ text-decoration:underline; }
h1,h2,h3,h4{ color:var(--th-navy); line-height:1.25; margin:0 0 .5em; }
.screen-reader-text{ position:absolute!important; clip:rect(1px,1px,1px,1px); overflow:hidden; height:1px; width:1px; }
.skip-link{ position:absolute; left:-9999px; top:0; background:var(--th-navy); color:#fff; padding:10px 16px; z-index:9999; }
.skip-link:focus{ left:0; }

.toolhub-container{ max-width:var(--th-max); margin:0 auto; padding:0 24px; }
.toolhub-section{ padding:64px 0; }
.toolhub-section-alt{ background:var(--th-bg); }
.toolhub-section-heading{ font-size:26px; margin-bottom:24px; }

/* ---------------------------------------------------------------- */
/* Header                                                             */
/* ---------------------------------------------------------------- */
.toolhub-site-header{ border-bottom:1px solid var(--th-border); background:#fff; position:sticky; top:0; z-index:100; }
.toolhub-header-inner{ display:flex; align-items:center; justify-content:space-between; height:72px; gap:24px; }
.toolhub-logo-text{ font-weight:800; font-size:22px; color:var(--th-navy); }
.toolhub-menu{ display:flex; gap:28px; list-style:none; margin:0; padding:0; position:relative; }
.toolhub-menu-item > a{ color:var(--th-navy); font-weight:600; font-size:15px; display:flex; align-items:center; gap:4px; }
.toolhub-menu-item > a:hover{ color:var(--th-green-dark); text-decoration:none; }
.toolhub-menu-item.has-children{ position:relative; }
.toolhub-submenu{
	display:none; position:absolute; top:100%; left:0; background:#fff; border:1px solid var(--th-border);
	border-radius:10px; padding:10px; min-width:220px; box-shadow:0 12px 28px rgba(10,22,40,.12); list-style:none; margin:8px 0 0;
}
.toolhub-menu-item.has-children:hover .toolhub-submenu,
.toolhub-menu-item.has-children:focus-within .toolhub-submenu{ display:block; }
.toolhub-submenu li a{ display:block; padding:8px 12px; border-radius:6px; color:var(--th-text); font-size:14px; }
.toolhub-submenu li a:hover{ background:var(--th-bg); text-decoration:none; }

.toolhub-mobile-toggle{ display:none; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer; padding:8px; }
.toolhub-mobile-toggle span{ width:22px; height:2px; background:var(--th-navy); transition:transform .2s ease, opacity .2s ease; }
.toolhub-mobile-toggle.is-active span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.toolhub-mobile-toggle.is-active span:nth-child(2){ opacity:0; }
.toolhub-mobile-toggle.is-active span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.toolhub-mobile-menu{ display:none; }
.toolhub-mobile-menu.is-open{
	display:block; border-top:1px solid var(--th-border); padding:8px 24px 16px;
	max-height:calc(100vh - 72px); overflow-y:auto; -webkit-overflow-scrolling:touch;
}
.toolhub-menu-mobile,
.toolhub-menu-mobile ul{ list-style:none; margin:0; padding:0; }
.toolhub-menu-mobile li a{ display:block; padding:12px 0; color:var(--th-navy); font-weight:600; border-bottom:1px solid var(--th-border); }
.toolhub-menu-mobile .toolhub-menu-item > a{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
.toolhub-menu-mobile .toolhub-menu-item.has-children > a svg{ flex-shrink:0; transition:transform .2s ease; color:var(--th-muted); }
.toolhub-menu-mobile .toolhub-menu-item.has-children.is-open > a svg{ transform:rotate(180deg); }

/* Mobile submenu: collapsed accordion panel, not the desktop hover dropdown */
.toolhub-mobile-menu .toolhub-submenu{
	position:static; display:block; box-shadow:none; border:0; border-radius:0;
	background:var(--th-bg); margin:0; padding:0 0 0 16px;
	max-height:0; overflow:hidden; transition:max-height .25s ease;
}
.toolhub-mobile-menu .toolhub-menu-item.has-children.is-open > .toolhub-submenu{
	max-height:2000px; /* generous cap so any realistic submenu fits while still transitioning */
	padding:4px 0 8px 16px;
}
.toolhub-mobile-menu .toolhub-submenu li a{
	border-bottom:0; padding:9px 0; font-weight:500; font-size:14px; color:var(--th-text);
}

@media (max-width:900px){
	.toolhub-primary-nav{ display:none; }
	.toolhub-mobile-toggle{ display:flex; }
}

/* ---------------------------------------------------------------- */
/* Hero                                                               */
/* ---------------------------------------------------------------- */
.toolhub-hero{ padding:72px 0 56px; background:linear-gradient(180deg,#f0faf6 0%,#fff 100%); text-align:center; }
.toolhub-eyebrow{ display:inline-block; background:#fff; border:1px solid var(--th-border); border-radius:999px; padding:6px 16px; font-size:13px; color:var(--th-muted); margin-bottom:16px; }
.toolhub-hero-title{ font-size:clamp(32px,5vw,52px); max-width:820px; margin:0 auto 16px; }
.toolhub-hero-subtitle{ max-width:640px; margin:0 auto 32px; color:var(--th-muted); font-size:18px; }
.toolhub-hero-cta{ margin-top:24px; }
.toolhub-hero-trust{ list-style:none; display:flex; gap:24px; justify-content:center; margin:32px 0 0; padding:0; color:var(--th-muted); font-size:14px; }

/* ---------------------------------------------------------------- */
/* Search box                                                         */
/* ---------------------------------------------------------------- */
.toolhub-search-box{ max-width:560px; margin:0 auto; position:relative; }
.toolhub-search-field{
	display:flex; align-items:center; gap:10px; background:#fff; border:1px solid var(--th-border);
	border-radius:12px; padding:14px 18px; box-shadow:0 4px 16px rgba(10,22,40,.06);
}
.toolhub-search-field svg{ width:18px; height:18px; color:var(--th-muted); flex-shrink:0; }
.toolhub-search-field input{ border:0; outline:0; flex:1; font-size:16px; font-family:inherit; }
.toolhub-search-results{
	position:absolute; top:calc(100% + 8px); left:0; right:0; background:#fff; border:1px solid var(--th-border);
	border-radius:12px; box-shadow:0 12px 28px rgba(10,22,40,.14); z-index:20; overflow:hidden; text-align:left;
}
.th-search-result{ display:block; padding:12px 18px; color:var(--th-text); border-bottom:1px solid var(--th-border); }
.th-search-result:last-child{ border-bottom:0; }
.th-search-result:hover{ background:var(--th-bg); text-decoration:none; }
.th-search-empty{ padding:14px 18px; color:var(--th-muted); }

/* ---------------------------------------------------------------- */
/* Category grid                                                     */
/* ---------------------------------------------------------------- */
.toolhub-category-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:16px; }
.toolhub-category-card{
	background:#fff; border:1px solid var(--th-border); border-radius:var(--th-radius); padding:24px;
	text-align:center; color:var(--th-navy); transition:transform .15s ease, box-shadow .15s ease;
}
.toolhub-category-card:hover{ transform:translateY(-3px); box-shadow:0 10px 24px rgba(10,22,40,.1); text-decoration:none; }
.toolhub-category-icon{ display:inline-flex; color:var(--th-green); margin-bottom:10px; }
.toolhub-category-icon svg{ width:28px; height:28px; }
.toolhub-category-name{ display:block; font-weight:700; }
.toolhub-category-count{ display:block; color:var(--th-muted); font-size:13px; margin-top:4px; }

/* ---------------------------------------------------------------- */
/* Tool grid + card                                                   */
/* ---------------------------------------------------------------- */
.toolhub-tool-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:20px; }
.toolhub-tool-card{
	display:flex; flex-direction:column; gap:8px; background:#fff; border:1px solid var(--th-border);
	border-radius:var(--th-radius); padding:24px; color:var(--th-text); transition:transform .15s ease, box-shadow .15s ease;
	position:relative;
}
.toolhub-tool-card:hover{ transform:translateY(-3px); box-shadow:0 10px 24px rgba(10,22,40,.1); text-decoration:none; }
.toolhub-tool-card-icon{ color:var(--th-green); }
.toolhub-tool-card-icon svg{ width:26px; height:26px; }
.toolhub-tool-card-title{ font-weight:700; color:var(--th-navy); font-size:17px; }
.toolhub-tool-card-desc{ color:var(--th-muted); font-size:14px; flex:1; }
.toolhub-tool-card-cat{ align-self:flex-start; font-size:11px; text-transform:uppercase; letter-spacing:.04em; color:var(--th-green-dark); font-weight:700; }

/* ---------------------------------------------------------------- */
/* Blog carousel                                                     */
/* ---------------------------------------------------------------- */
.toolhub-carousel-header{ display:flex; align-items:center; justify-content:space-between; }
.toolhub-carousel-controls{ display:flex; gap:8px; }
.toolhub-carousel-btn{
	width:36px; height:36px; border-radius:50%; border:1px solid var(--th-border); background:#fff;
	font-size:20px; cursor:pointer; color:var(--th-navy);
}
.toolhub-carousel{ overflow:hidden; }
.toolhub-carousel-track{ display:flex; gap:20px; transition:transform .3s ease; scroll-snap-type:x mandatory; overflow-x:auto; }
.toolhub-carousel-card{
	flex:0 0 300px; scroll-snap-align:start; background:#fff; border:1px solid var(--th-border); border-radius:var(--th-radius); overflow:hidden;
}
.toolhub-carousel-thumb{ display:block; aspect-ratio:16/10; background:var(--th-bg); overflow:hidden; }
.toolhub-carousel-thumb img{ width:100%; height:100%; object-fit:cover; }
.toolhub-carousel-thumb-fallback{ display:block; width:100%; height:100%; background:linear-gradient(135deg,var(--th-navy),var(--th-green)); }
.toolhub-carousel-body{ padding:18px; }
.toolhub-carousel-cat{ font-size:11px; text-transform:uppercase; color:var(--th-green-dark); font-weight:700; }
.toolhub-carousel-body h3{ font-size:17px; margin:6px 0; }
.toolhub-carousel-body p{ color:var(--th-muted); font-size:14px; margin:0; }

/* ---------------------------------------------------------------- */
/* Tool app UI                                                       */
/* ---------------------------------------------------------------- */
.toolhub-tool-page{ padding:40px 0 80px; }
.toolhub-breadcrumbs{ font-size:13px; color:var(--th-muted); margin-bottom:20px; }
.toolhub-breadcrumbs a{ color:var(--th-muted); }
.toolhub-tool-header h1{ font-size:34px; }
.toolhub-tool-lede{ color:var(--th-muted); font-size:17px; max-width:720px; }
.th-app-wrapper{ margin:32px 0; }
.th-app-loading{ min-height:180px; }
.toolhub-tool-content{ max-width:760px; margin:40px 0; color:var(--th-text); }
.toolhub-howto,.toolhub-faq,.toolhub-related-posts{ margin:56px 0; max-width:900px; }
.toolhub-howto-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:14px; }
.toolhub-howto-list li{ display:flex; gap:14px; align-items:flex-start; }
.toolhub-howto-number{
	flex-shrink:0; width:28px; height:28px; border-radius:50%; background:var(--th-green); color:#fff;
	display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px;
}
.toolhub-accordion-item{ border:1px solid var(--th-border); border-radius:10px; padding:16px 20px; margin-bottom:10px; }
.toolhub-accordion-item summary{ cursor:pointer; font-weight:600; color:var(--th-navy); }
.toolhub-accordion-body{ margin-top:10px; color:var(--th-muted); }
.toolhub-share-row{ margin:40px 0; }
.toolhub-share-buttons{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.toolhub-share-label{ font-weight:600; color:var(--th-navy); }
.toolhub-share-btn{ border:1px solid var(--th-border); border-radius:8px; padding:8px 14px; font-size:13px; color:var(--th-navy); }
.toolhub-share-btn:hover{ background:var(--th-bg); text-decoration:none; }
.toolhub-related-posts-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:16px; }
.toolhub-related-post-card{ border:1px solid var(--th-border); border-radius:12px; overflow:hidden; color:var(--th-text); display:block; }
.toolhub-related-post-card:hover{ text-decoration:none; box-shadow:0 8px 20px rgba(10,22,40,.08); }
.toolhub-related-post-title{ display:block; padding:14px; font-weight:600; }

/* ---------------------------------------------------------------- */
/* Blog layout                                                        */
/* ---------------------------------------------------------------- */
.toolhub-blog-layout{ display:grid; grid-template-columns:1fr 300px; gap:48px; padding:48px 0 80px; align-items:start; }
@media(max-width:900px){ .toolhub-blog-layout{ grid-template-columns:1fr; } }
.toolhub-post-header h1{ font-size:32px; }
.toolhub-post-cat{ display:inline-block; background:var(--th-bg); color:var(--th-green-dark); border-radius:999px; padding:4px 12px; font-size:12px; font-weight:700; margin-bottom:10px; }
.toolhub-post-meta{ color:var(--th-muted); font-size:14px; display:flex; gap:8px; margin:12px 0 24px; }
.toolhub-post-thumb{ border-radius:var(--th-radius); overflow:hidden; margin-bottom:32px; }
.toolhub-post-content{ font-size:17px; line-height:1.75; }
.toolhub-post-content h2{ margin-top:2em; }
.toolhub-post-content img{ border-radius:12px; }
.toolhub-toc{ background:var(--th-bg); border-radius:12px; padding:20px 24px; margin:28px 0; }
.toolhub-toc-toggle{ background:none; border:0; font-weight:700; color:var(--th-navy); display:flex; align-items:center; justify-content:space-between; width:100%; cursor:pointer; }
.toolhub-toc-list{ margin:14px 0 0; padding-left:18px; }
.toolhub-toc-list a{ color:var(--th-text); }
.toolhub-toc-list a.is-active{ color:var(--th-green-dark); font-weight:700; }
.toolhub-toc-level-3{ margin-left:16px; font-size:14px; }

.toolhub-post-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:24px; }
.toolhub-post-card{ border:1px solid var(--th-border); border-radius:var(--th-radius); overflow:hidden; }
.toolhub-post-card-thumb{ display:block; aspect-ratio:16/10; background:var(--th-bg); }
.toolhub-post-card-thumb img{ width:100%; height:100%; object-fit:cover; }
.toolhub-post-card-body{ padding:18px; }
.toolhub-post-card-body h2{ font-size:19px; margin:8px 0; }
.toolhub-post-card-meta{ color:var(--th-muted); font-size:13px; display:flex; gap:6px; }

.toolhub-sidebar .widget{ background:var(--th-bg); border-radius:12px; padding:20px; margin-bottom:20px; }
.toolhub-sidebar-tool-list{ list-style:none; padding:0; margin:0; }
.toolhub-sidebar-tool-list li a{ display:block; padding:8px 0; border-bottom:1px solid var(--th-border); color:var(--th-text); }

/* ---------------------------------------------------------------- */
/* Filter pills, archive header                                       */
/* ---------------------------------------------------------------- */
.toolhub-archive-header{ padding:48px 0 32px; text-align:center; }
.toolhub-filter-pills{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-top:24px; }
.toolhub-filter-pill{ border:1px solid var(--th-border); border-radius:999px; padding:8px 18px; font-size:14px; color:var(--th-navy); }
.toolhub-filter-pill.is-active,.toolhub-filter-pill:hover{ background:var(--th-navy); color:#fff; text-decoration:none; }

/* ---------------------------------------------------------------- */
/* Footer                                                             */
/* ---------------------------------------------------------------- */
.toolhub-site-footer{ background:var(--th-navy); color:#cbd5e1; margin-top:80px; }
.toolhub-footer-grid{ display:grid; grid-template-columns:2fr 1fr 1fr; gap:40px; padding:56px 0 32px; }
@media(max-width:700px){ .toolhub-footer-grid{ grid-template-columns:1fr; } }
.toolhub-footer-grid h4{ color:#fff; font-size:15px; }
.toolhub-footer-grid ul{ list-style:none; padding:0; margin:0; }
.toolhub-footer-grid a{ color:#cbd5e1; }
.toolhub-footer-grid a:hover{ color:#fff; }
.toolhub-footer-bottom{ border-top:1px solid rgba(255,255,255,.1); padding:20px 0; display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; font-size:13px; }

/* ---------------------------------------------------------------- */
/* Utility helpers                                                    */
/* ---------------------------------------------------------------- */
.toolhub-center{ text-align:center; }
.toolhub-narrow{ max-width:820px; }
.toolhub-section-sub{ color:var(--th-muted); font-size:16px; margin:-12px auto 32px; max-width:600px; }

/* ---------------------------------------------------------------- */
/* Why Us section                                                    */
/* ---------------------------------------------------------------- */
.toolhub-why-us-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:20px; }
.toolhub-why-us-card{
	background:#fff; border:1px solid var(--th-border); border-radius:var(--th-radius); padding:28px 24px; text-align:center;
	transition:transform .15s ease, box-shadow .15s ease;
}
.toolhub-why-us-card:hover{ transform:translateY(-3px); box-shadow:0 10px 24px rgba(10,22,40,.08); }
.toolhub-why-us-icon{
	display:inline-flex; align-items:center; justify-content:center; width:56px; height:56px; border-radius:50%;
	background:#f0faf6; color:var(--th-green); margin-bottom:16px;
}
.toolhub-why-us-icon svg{ width:26px; height:26px; }
.toolhub-why-us-card h3{ font-size:18px; margin-bottom:8px; }
.toolhub-why-us-card p{ color:var(--th-muted); font-size:14px; margin:0; }

/* ---------------------------------------------------------------- */
/* Homepage FAQ                                                       */
/* ---------------------------------------------------------------- */
.toolhub-home-faq{ padding:64px 0; }
.toolhub-home-faq .toolhub-accordion-item{ background:#fff; }
.toolhub-home-faq .toolhub-accordion-item summary{ font-size:16px; padding:2px 0; }
.toolhub-home-faq .toolhub-accordion-item summary::-webkit-details-marker{ display:none; }
.toolhub-home-faq .toolhub-accordion-item summary{ list-style:none; position:relative; padding-right:28px; }
.toolhub-home-faq .toolhub-accordion-item summary::after{
	content:"+"; position:absolute; right:0; top:0; font-size:20px; color:var(--th-green); transition:transform .15s ease;
}
.toolhub-home-faq .toolhub-accordion-item[open] summary::after{ transform:rotate(45deg); }

/* ---------------------------------------------------------------- */
/* CTA band                                                           */
/* ---------------------------------------------------------------- */
.toolhub-cta{
	background:linear-gradient(135deg,var(--th-navy) 0%, var(--th-navy-light) 60%, var(--th-green-dark) 130%);
	padding:72px 0; text-align:center; color:#fff; margin-top:8px;
}
.toolhub-cta-inner h2{ color:#fff; font-size:32px; margin-bottom:12px; }
.toolhub-cta-inner p{ color:#cbd5e1; font-size:17px; max-width:560px; margin:0 auto 28px; }
.toolhub-cta-btn{ font-size:16px; padding:14px 32px; }

/* ---------------------------------------------------------------- */
/* Mobile floating "Explore Tools" button                             */
/* ---------------------------------------------------------------- */
.toolhub-mobile-fab{
	display:none;
	position:fixed;
	left:50%;
	bottom:18px;
	transform:translateX(-50%) translateY(120%);
	z-index:200;
	background:var(--th-green);
	color:#fff;
	font-weight:700;
	font-size:14px;
	padding:14px 22px;
	border-radius:999px;
	box-shadow:0 10px 24px rgba(10,22,40,.25);
	align-items:center;
	gap:8px;
	opacity:0;
	transition:transform .25s ease, opacity .25s ease;
	padding-bottom:calc(14px + env(safe-area-inset-bottom, 0px));
}
.toolhub-mobile-fab svg{ width:16px; height:16px; }
.toolhub-mobile-fab:hover{ color:#fff; text-decoration:none; background:var(--th-green-dark); }
.toolhub-mobile-fab.is-visible{ transform:translateX(-50%) translateY(0); opacity:1; }

@media (max-width:782px){
	.toolhub-mobile-fab{ display:inline-flex; }
}

/* ---------------------------------------------------------------- */
/* Misc                                                               */
/* ---------------------------------------------------------------- */
.toolhub-404{ text-align:center; padding:100px 0; }
.toolhub-404 .th-btn{ margin-top:24px; display:inline-flex; }

@media(max-width:600px){
	.toolhub-section{ padding:40px 0; }
	.toolhub-hero{ padding:48px 0 40px; }
}