/*
Theme Name: Hosting UK
Theme URI: https://hostinguk.net/
Author: Hosting UK
Author URI: https://hostinguk.net/
Description: Classic blog theme matching the Hosting UK website: warm light theme, navy/orange/teal, Montserrat headings and Open Sans body. Header and footer link back to the main site.
Version: 1.3.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hostinguk
Tags: blog, one-column, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

:root {
	--huk-bg: hsl(0 0% 100%);
	--huk-fg: hsl(210 29% 20%);
	--huk-navy: hsl(210 29% 20%);
	--huk-primary: hsl(16 100% 50%);
	--huk-primary-dark: hsl(16 100% 44%);
	--huk-teal: hsl(195 60% 45%);
	--huk-teal-light: hsl(195 72% 68%);
	--huk-muted: hsl(210 20% 96%);
	--huk-muted-fg: hsl(210 15% 42%);
	--huk-border: hsl(210 20% 90%);
	--huk-warm: hsl(30 30% 97%);
	--huk-radius: 0.5rem;
	--huk-shadow: 0 4px 20px -4px hsl(210 20% 70% / 0.3);
	--huk-shadow-hover: 0 8px 30px -4px hsl(210 20% 60% / 0.3);
	--huk-hero-overlay: linear-gradient(to bottom right, hsl(210 29% 20% / .9), hsl(210 29% 20% / .75), hsl(210 29% 20% / .5));
	--huk-heading: "Montserrat", system-ui, sans-serif;
	--huk-body: "Open Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
	margin: 0; background: var(--huk-bg); color: var(--huk-fg);
	font-family: var(--huk-body); font-size: 1rem; line-height: 1.5;
	-webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--huk-teal); text-decoration: none; }
a:hover, a:focus { color: var(--huk-primary); }
:focus-visible { outline: 2px solid var(--huk-primary); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--huk-heading); color: var(--huk-navy); line-height: 1.25; font-weight: 700; margin: 1.6em 0 .6em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.2em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; width: auto; height: auto; clip: auto; background: var(--huk-primary); color: #fff; padding: .6rem 1rem; border-radius: var(--huk-radius); }
.container { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.container--narrow { max-width: 48rem; }

/* Buttons */
.btn, .wp-block-button__link, button, input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 44px; padding: .6rem 1.4rem; border: 0; border-radius: var(--huk-radius);
	background: var(--huk-primary); color: #fff; font-family: var(--huk-heading); font-weight: 600;
	font-size: .95rem; cursor: pointer; transition: background .2s, box-shadow .2s;
}
.btn:hover, .wp-block-button__link:hover, button:hover, input[type="submit"]:hover { background: var(--huk-primary-dark); color: #fff; box-shadow: var(--huk-shadow-hover); }
.btn--outline { background: transparent; color: var(--huk-navy); border: 1px solid var(--huk-border); }
.btn--outline:hover { background: var(--huk-muted); color: var(--huk-navy); box-shadow: none; }

/* Hero */
.page-hero { background: var(--huk-hero-overlay), url("assets/dedicated-hero.jpg") center / cover no-repeat; color: #fff; padding: 3.5rem 0 3rem; }
.page-hero h1 { color: #fff; margin: 0 0 .5rem; }
.page-hero p { color: hsl(0 0% 100% / .8); margin: 0; max-width: 40rem; font-size: 1.1rem; }
.page-hero .eyebrow { color: var(--huk-teal-light); }
.eyebrow { display: inline-block; font-family: var(--huk-heading); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--huk-teal); margin-bottom: .6rem; }

/* Layout */
.site-main { padding: 3rem 0 4rem; background: var(--huk-warm); }
.layout { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .layout--sidebar { grid-template-columns: minmax(0, 1fr) 300px; } }

/* Post cards */
.post-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { background: #fff; border: 1px solid var(--huk-border); border-radius: calc(var(--huk-radius) + 4px); box-shadow: var(--huk-shadow); overflow: hidden; transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--huk-shadow-hover); transform: translateY(-2px); }
.card__media { display: block; aspect-ratio: 16/9; background: var(--huk-muted); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.2rem; margin: .3rem 0 .6rem; }
.card__title a { color: var(--huk-navy); }
.card__title a:hover { color: var(--huk-primary); }
.card__excerpt { color: var(--huk-muted-fg); font-size: .95rem; flex: 1; }
.card__excerpt p { margin: 0 0 1rem; }
.read-more { font-family: var(--huk-heading); font-weight: 600; font-size: .9rem; color: var(--huk-primary); display: inline-flex; min-height: 44px; align-items: center; }
.meta { font-size: .8rem; color: var(--huk-muted-fg); display: flex; flex-wrap: wrap; gap: .4rem .9rem; }
.meta a { color: var(--huk-teal); }
.card--featured { grid-column: 1 / -1; }
@media (min-width: 800px) { .card--featured { flex-direction: row; } .card--featured .card__media { flex: 0 0 55%; aspect-ratio: auto; min-height: 300px; } .card--featured .card__title { font-size: 1.6rem; } }

/* Single */
.entry { background: #fff; border: 1px solid var(--huk-border); border-radius: calc(var(--huk-radius) + 4px); box-shadow: var(--huk-shadow); padding: 1.5rem; }
@media (min-width: 640px) { .entry { padding: 2.5rem 3rem; } }
.entry__thumb { margin: -1.5rem -1.5rem 1.5rem; }
@media (min-width: 640px) { .entry__thumb { margin: -2.5rem -3rem 2rem; } }
.entry__thumb img { width: 100%; display: block; border-radius: calc(var(--huk-radius) + 4px) calc(var(--huk-radius) + 4px) 0 0; }
.entry-content { font-size: 1.05rem; overflow-wrap: anywhere; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content blockquote, .wp-block-quote { margin: 1.5rem 0; padding: 1rem 1.4rem; border-left: 4px solid var(--huk-primary); background: var(--huk-muted); border-radius: 0 var(--huk-radius) var(--huk-radius) 0; font-style: italic; }
.entry-content pre, .entry-content code { background: var(--huk-muted); border-radius: 4px; font-size: .9em; }
.entry-content code { padding: .1em .35em; }
.entry-content pre { padding: 1rem; overflow-x: auto; }
.entry-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--huk-border); padding: .5rem .75rem; text-align: left; }
.entry-content th { background: var(--huk-muted); font-family: var(--huk-heading); }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.entry-content li::marker { color: var(--huk-primary); }
.alignwide { max-width: none; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--huk-muted-fg); text-align: center; margin-top: .4rem; }
.tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 .8rem; border-radius: 999px; background: var(--huk-muted); color: var(--huk-navy); font-size: .85rem; }
.tags a:hover { background: var(--huk-primary); color: #fff; }
.post-nav { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a { display: block; background: #fff; border: 1px solid var(--huk-border); border-radius: var(--huk-radius); padding: 1rem 1.2rem; color: var(--huk-navy); font-weight: 600; }
.post-nav a:hover { border-color: var(--huk-primary); }
.post-nav span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--huk-muted-fg); font-weight: 400; }

/* CTA band */
.cta-band { background: var(--huk-navy); color: #fff; border-radius: calc(var(--huk-radius) + 4px); padding: 2rem; margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.cta-band h2 { color: #fff; margin: 0; font-size: 1.4rem; }
.cta-band p { margin: 0; color: hsl(0 0% 100% / .8); }
.cta-band em { color: var(--huk-teal-light); }
@media (min-width: 768px) { .cta-band { flex-direction: row; align-items: center; justify-content: space-between; } }

/* Sidebar / widgets */
.widget { background: #fff; border: 1px solid var(--huk-border); border-radius: calc(var(--huk-radius) + 4px); padding: 1.25rem 1.4rem; margin-bottom: 1.5rem; box-shadow: var(--huk-shadow); }
.widget-title, .widget h2 { font-size: 1rem; margin: 0 0 .8rem; text-transform: uppercase; letter-spacing: .08em; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { border-bottom: 1px solid var(--huk-border); }
.widget li:last-child { border-bottom: 0; }
.widget li a { display: flex; align-items: center; min-height: 44px; color: var(--huk-navy); }
.widget li a:hover { color: var(--huk-primary); }

/* Forms */
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], textarea, select {
	width: 100%; min-height: 44px; padding: .6rem .9rem; border: 1px solid var(--huk-border); border-radius: var(--huk-radius);
	font: inherit; color: var(--huk-fg); background: #fff;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--huk-primary); box-shadow: 0 0 0 3px hsl(16 100% 50% / .15); }
.search-form { display: flex; box-shadow: var(--huk-shadow); border-radius: var(--huk-radius); }
.search-form label { flex: 1; min-width: 0; }
.search-form input[type="search"] { border-radius: var(--huk-radius) 0 0 var(--huk-radius); border-right: 0; }
.search-form button { border-radius: 0 var(--huk-radius) var(--huk-radius) 0; padding: 0 1rem; }

/* Pagination */
.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .8rem; border-radius: var(--huk-radius); background: #fff; border: 1px solid var(--huk-border); color: var(--huk-navy); font-weight: 600; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--huk-primary); border-color: var(--huk-primary); color: #fff; }

/* Comments */
.comments-area { margin-top: 2.5rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 1.5rem; }
.comment-body { background: #fff; border: 1px solid var(--huk-border); border-radius: var(--huk-radius); padding: 1rem 1.2rem; margin-bottom: 1rem; }
.comment-meta { font-size: .85rem; color: var(--huk-muted-fg); }
.comment-author .avatar { border-radius: 50%; vertical-align: middle; margin-right: .5rem; }
.comment-respond { background: #fff; border: 1px solid var(--huk-border); border-radius: calc(var(--huk-radius) + 4px); padding: 1.5rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-weight: 600; margin-bottom: .3rem; }

/* 404 / empty */
.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-state .search-form { max-width: 28rem; margin: 1.5rem auto 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ===== Header (mirrors main site 1:1) ===== */
.huk-container { box-sizing: border-box; width: 100%; max-width: 72rem; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
.huk-header, .huk-footer { font-family: "Open Sans", system-ui, sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.huk-header *, .huk-footer * { box-sizing: border-box; }
.huk-header a, .huk-header button { font-family: inherit; }
.huk-icon { display: inline-block; flex-shrink: 0; }
.huk-icon--3 { width: .75rem; height: .75rem; }
.huk-icon--35 { width: .875rem; height: .875rem; }
.huk-icon--4 { width: 1rem; height: 1rem; }
.huk-icon--5 { width: 1.25rem; height: 1.25rem; }
.huk-text-primary { color: var(--huk-primary); }
.huk-inline { display: inline-flex; align-items: center; gap: .5rem; }
.huk-rel { position: relative; display: inline-block; }
.huk-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: #fff; transform: translateZ(0); }
.admin-bar .huk-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .huk-header { top: 46px; } }
.huk-header-spacer { height: 5rem; }
@media (min-width: 1024px) { .huk-header-spacer { height: 7rem; } }

.huk-util { display: none; border-bottom: 1px solid var(--huk-border); background: hsl(210 20% 96% / .6); }
@media (min-width: 1024px) { .huk-util { display: block; } }
.huk-util__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 2rem; font-size: .75rem; line-height: 1rem; color: hsl(210 15% 50%); }
.huk-util a { color: inherit; text-decoration: none; transition: color .15s; }
.huk-util__phone { display: inline-flex; align-items: center; gap: .375rem; white-space: nowrap; }
.huk-util__right { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.huk-util__link { display: inline-flex; align-items: center; gap: .25rem; }
.huk-util a:hover { color: var(--huk-primary); }
.huk-util__dd { position: relative; height: 2rem; display: flex; align-items: center; }
.huk-util .huk-util__client { display: flex; align-items: center; gap: .375rem; border-radius: calc(var(--huk-radius) - 2px); background: hsl(16 100% 50% / .1); color: var(--huk-primary); padding: .25rem .625rem; font-weight: 600; transition: background .15s, color .15s; }
.huk-util .huk-util__client:hover { background: var(--huk-primary); color: #fff; }

.huk-nav { display: flex; align-items: center; justify-content: space-between; height: 5rem; border-bottom: 1px solid var(--huk-border); }
.huk-nav__end { display: flex; align-items: center; gap: .75rem; }
.huk-nav__logo { display: flex; align-items: center; }
.huk-nav__logo img { height: 3.5rem; width: auto; display: block; }
@media (min-width: 640px) { .huk-nav__logo img { height: 4rem; } }
.huk-nav__list { display: none; list-style: none; margin: 0; padding: 0; align-items: center; gap: 1.5rem; font-size: .875rem; line-height: 1.25rem; font-weight: 500; color: var(--huk-fg); white-space: nowrap; }
@media (min-width: 1024px) { .huk-nav__list { display: flex; } }
@media (min-width: 1280px) { .huk-nav__list { gap: 2rem; } }
.huk-nav__list > li { position: relative; }
.huk-nav__item { display: flex; align-items: center; gap: .25rem; background: none; border: 0; padding: 0; min-height: 0; margin: 0; font: inherit; font-weight: 500; color: var(--huk-fg); cursor: pointer; text-decoration: none; transition: color .15s; border-radius: 0; box-shadow: none; }
.huk-nav__item:hover, .huk-nav__item:focus { color: var(--huk-primary); background: none; box-shadow: none; }
.huk-new { pointer-events: none; position: absolute; top: -13px; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .125rem .25rem; border-radius: .25rem; background: var(--huk-primary); color: #fff; line-height: 1; white-space: nowrap; }
.huk-new--hosting { right: -10px; }
.huk-new--ssl { right: -14px; }
.huk-badge-soft { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .125rem .375rem; border-radius: .25rem; background: hsl(16 100% 50% / .15); color: var(--huk-primary); line-height: 1.5; }
.huk-badge-solid { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .125rem .375rem; border-radius: .25rem; background: var(--huk-primary); color: #fff; line-height: 1.5; }

.huk-dd { display: none; position: absolute; top: 100%; left: 0; padding: .5rem 0 0; margin: 0; width: 16rem; list-style: none; z-index: 50; }
.huk-dd--sm { right: 0; left: auto; width: 14rem; padding-top: .25rem; }
.huk-hasdd:hover > .huk-dd, .huk-hasdd:focus-within > .huk-dd, .huk-hasdd.is-open > .huk-dd { display: block; }
.huk-dd__panel { border-radius: var(--huk-radius); border: 1px solid var(--huk-border); background: #fff; box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1); padding: .5rem 0; }
.huk-dd__divider { margin: .25rem 0; border-top: 1px solid var(--huk-border); }
.huk-dd__link { display: block; padding: .5rem 1rem; font-size: .875rem; line-height: 1.25rem; font-weight: 500; color: var(--huk-fg) !important; text-decoration: none; transition: background .15s, color .15s; white-space: nowrap; }
.huk-dd--sm .huk-dd__link { font-size: .75rem; line-height: 1rem; font-weight: 400; }
.huk-dd__link.has-badge { display: flex; align-items: center; justify-content: space-between; }
.huk-dd__link.is-bold { font-weight: 700; }
.huk-dd__link:hover { background: var(--huk-muted); color: var(--huk-primary) !important; }

.huk-burger { display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; min-height: 0; padding: 0; border: 0; border-radius: calc(var(--huk-radius) - 2px); background: transparent; color: var(--huk-fg); cursor: pointer; box-shadow: none; }
.huk-burger:hover { background: var(--huk-muted); color: var(--huk-fg); box-shadow: none; }
.huk-burger__close, .huk-burger[aria-expanded="true"] .huk-burger__open { display: none; }
.huk-burger[aria-expanded="true"] .huk-burger__close { display: block; }
@media (min-width: 1024px) { .huk-burger, .huk-m { display: none !important; } }
.huk-m { border-bottom: 1px solid var(--huk-border); background: #fff; max-height: calc(100vh - 6rem); overflow-y: auto; }
.huk-m[hidden] { display: none; }
.huk-m__inner { display: flex; flex-direction: column; gap: .25rem; padding: 1rem; font-size: .875rem; line-height: 1.25rem; font-weight: 500; }
.huk-m__btn, .huk-m__link { display: flex; align-items: center; justify-content: space-between; padding: .75rem 0; min-height: 0; border: 0; background: none; box-shadow: none; border-radius: 0; font: inherit; font-weight: 500; color: var(--huk-fg); text-align: left; cursor: pointer; text-decoration: none; transition: color .15s; }
.huk-m__link.huk-inline { justify-content: flex-start; }
.huk-m__btn:hover, .huk-m__link:hover { color: var(--huk-primary); background: none; box-shadow: none; }
.huk-m__chev { transition: transform .2s; }
.huk-m__btn[aria-expanded="true"] .huk-m__chev { transform: rotate(180deg); }
.huk-m__sub { display: flex; flex-direction: column; gap: .25rem; padding-left: 1rem; margin-bottom: .5rem; }
.huk-m__sub[hidden] { display: none; }
.huk-m__sublink { display: flex; align-items: center; gap: .5rem; padding: .5rem 0; color: hsl(210 15% 50%); text-decoration: none; }
.huk-m__sublink.is-bold { font-weight: 700; color: var(--huk-fg); }
.huk-m__sublink:hover { color: var(--huk-primary); }
.huk-m__client { margin-top: .5rem; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 0; border-radius: var(--huk-radius); background: var(--huk-primary); color: #fff !important; font-weight: 600; text-decoration: none; }
.huk-m__client:hover { background: hsl(16 100% 50% / .9); }

/* ===== Footer (mirrors main site 1:1) ===== */
.huk-footer { border-top: 1px solid var(--huk-border); background: var(--huk-navy); padding: 3rem 1rem; }
.huk-footer__top { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.huk-footer__logo { height: 2.5rem; width: auto; filter: brightness(0) invert(1); }
.huk-footer__nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 1rem; row-gap: .25rem; font-size: .875rem; line-height: 1.25rem; text-align: center; }
.huk-footer__nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .5rem; color: hsl(0 0% 100% / .6); text-decoration: none; white-space: nowrap; transition: color .15s; }
.huk-footer__nav a:hover { color: #fff; }
.huk-footer__legal { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid hsl(0 0% 100% / .1); display: flex; flex-direction: column; align-items: center; gap: .25rem; font-size: .75rem; line-height: 1rem; color: hsl(0 0% 100% / .6); text-align: center; }
.huk-footer__legal p { margin: 0; }
