/*
Theme Name:   Hive Network
Theme URI:    https://hivenetwork.co.uk
Template:     hive-framework
Author:       Hive Network
Author URI:   https://hivenetwork.co.uk
Description:  Custom child theme for Hive Network — Web Design, SEO & Marketing. A bold, dark, gold-accented agency build with a honeycomb motif, on top of the Hive Framework parent theme.
Version:      1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.7
License:      GPL v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  hive-network
*/

/* ==========================================================================
   0. Brand tokens
   Overrides the parent framework's --hive-accent variables so every
   parent-rendered component (buttons, header, footer, cards) already
   picks up the Hive Network palette with zero extra work.
   ========================================================================== */

:root {
	/* Core brand palette, pulled from the Hive Network mark. */
	--hn-black:        #0a0a0a;
	--hn-black-soft:    #121212;
	--hn-charcoal:      #1c1c1e;
	--hn-charcoal-2:    #232326;
	--hn-slate:         #2a2a2e;
	--hn-gold:          #f2b705;
	--hn-gold-deep:     #d19a04;
	--hn-gold-hover:    #ffcb1f;
	--hn-white:         #ffffff;
	--hn-off-white:     #f4f4f2;
	--hn-grey:          #a8a8ad;
	--hn-grey-dim:      #77777d;
	--hn-border:        rgba(242, 183, 5, 0.16);

	--hn-font-heading: 'Poppins', 'Segoe UI', sans-serif;
	--hn-font-body:    'Inter', 'Segoe UI', sans-serif;

	--hn-radius: 14px;
	--hn-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);

	/* Parent framework variables — remapped so header.php / footer.php /
	   Button.php / Card.php output already matches the brand. */
	--hive-accent:        var(--hn-gold);
	--hive-accent-hover:  var(--hn-gold-hover);
	--hive-header-bg:     var(--hn-black);
	--hive-header-text:   var(--hn-off-white);
	--hive-footer-bg:     var(--hn-black-soft);
	--hive-footer-text:   var(--hn-grey);
	--hive-body-bg:       var(--hn-off-white);
	--hive-body-text:     #1a1a1a;
}

/* ==========================================================================
   1. Base / typography
   ========================================================================== */

body {
	font-family: var(--hn-font-body);
	color: #201f1c;
	background: var(--hn-off-white);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.site-title,
.hive-hero__title {
	font-family: var(--hn-font-heading);
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #100f0d;
}

a {
	color: var(--hn-gold-deep);
}
a:hover {
	color: var(--hn-gold-hover);
}

.wrap,
.hn-section__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

::selection {
	background: var(--hn-gold);
	color: #100f0d;
}

/* ==========================================================================
   2. Header (overrides parent .site-header)
   ========================================================================== */

.site-header {
	background: var(--hn-black);
	border-bottom: 1px solid var(--hn-border);
	position: sticky;
	top: 0;
	z-index: 999;
}

.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 14px;
	padding-bottom: 14px;
	gap: 24px;
}

.site-header .site-title a,
.site-header .site-title a:hover {
	color: var(--hn-white);
	font-family: var(--hn-font-heading);
	font-weight: 700;
	font-size: 1.3rem;
	text-decoration: none;
	letter-spacing: 0.01em;
}

.site-header .site-title a span {
	color: var(--hn-gold);
}

.site-header .custom-logo {
	max-height: 46px;
	width: auto;
}

.nav-primary-menu {
	display: flex;
	gap: 30px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-primary-menu a {
	color: var(--hn-off-white);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	position: relative;
	padding: 6px 0;
	transition: color 0.2s ease;
}

.nav-primary-menu a:hover,
.nav-primary-menu .current-menu-item > a {
	color: var(--hn-gold);
}

.nav-primary-menu a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 2px;
	background: var(--hn-gold);
	transition: width 0.25s ease;
}

.nav-primary-menu a:hover::after {
	width: 100%;
}

.menu-toggle {
	background: transparent;
	border: 1px solid var(--hn-border);
	border-radius: 8px;
	padding: 10px;
	display: none;
}

.menu-toggle-bar {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--hn-gold);
	margin: 4px 0;
}

@media (max-width: 860px) {
	.menu-toggle { display: block; }
	.nav-primary {
		display: none;
		width: 100%;
		order: 3;
	}
	.nav-primary.is-open { display: block; }
	.nav-primary-menu {
		flex-direction: column;
		gap: 4px;
		padding: 12px 0 20px;
	}
	.site-header .wrap { flex-wrap: wrap; }
}

/* ==========================================================================
   3. Buttons (parent hive-btn component, re-skinned)
   ========================================================================== */

.hive-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--hn-font-heading);
	font-weight: 600;
	border-radius: 999px;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
	white-space: nowrap;
	border: 2px solid transparent;
}

.hive-btn--md { padding: 13px 30px; font-size: 0.95rem; }
.hive-btn--sm { padding: 9px 20px; font-size: 0.85rem; }
.hive-btn--lg { padding: 17px 40px; font-size: 1.05rem; }

.hive-btn--primary {
	background: var(--hn-gold);
	color: #100f0d;
}
.hive-btn--primary:hover {
	background: var(--hn-gold-hover);
	color: #100f0d;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(242, 183, 5, 0.35);
}

.hive-btn--secondary {
	background: transparent;
	border-color: var(--hn-white);
	color: var(--hn-white);
}
.hive-btn--secondary:hover {
	background: var(--hn-white);
	color: #100f0d;
	transform: translateY(-2px);
}

.hive-btn--ghost {
	background: transparent;
	border-color: var(--hn-gold);
	color: var(--hn-gold-deep);
}
.hive-btn--ghost:hover {
	background: var(--hn-gold);
	color: #100f0d;
}

/* ==========================================================================
   4. Section scaffolding + honeycomb motif
   ========================================================================== */

.hn-section {
	padding: 100px 0;
	position: relative;
}
.hn-section--tight { padding: 70px 0; }
.hn-section--dark {
	background: var(--hn-black);
	color: var(--hn-grey);
}
.hn-section--dark h2,
.hn-section--dark h3 { color: var(--hn-white); }
.hn-section--charcoal {
	background: var(--hn-charcoal);
	color: var(--hn-grey);
}
.hn-section--charcoal h2,
.hn-section--charcoal h3 { color: var(--hn-white); }

.hn-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--hn-font-heading);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--hn-gold-deep);
	margin-bottom: 16px;
}
.hn-section--dark .hn-eyebrow,
.hn-section--charcoal .hn-eyebrow { color: var(--hn-gold); }

.hn-eyebrow::before {
	content: '';
	width: 22px;
	height: 2px;
	background: currentColor;
	display: inline-block;
}

.hn-section__header {
	max-width: 680px;
	margin: 0 0 56px;
}
.hn-section__header--center {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.hn-section__title {
	font-size: clamp(1.8rem, 3vw, 2.5rem);
	line-height: 1.15;
	margin: 0 0 16px;
}

.hn-section__lead {
	font-size: 1.08rem;
	line-height: 1.7;
	color: var(--hn-grey-dim);
	margin: 0;
}
.hn-section--dark .hn-section__lead,
.hn-section--charcoal .hn-section__lead { color: var(--hn-grey); }

/* Honeycomb hex background pattern, used behind dark sections. */
.hn-hex-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.5;
	background-image:
		radial-gradient(circle at 15% 20%, rgba(242,183,5,0.10) 0, transparent 40%),
		radial-gradient(circle at 85% 75%, rgba(242,183,5,0.08) 0, transparent 45%);
}

.hn-hex-icon {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0% 50%);
	background: linear-gradient(135deg, var(--hn-gold), var(--hn-gold-deep));
	color: #100f0d;
	font-size: 1.4rem;
	flex-shrink: 0;
}

/* ==========================================================================
   5. Hero
   ========================================================================== */

.hn-hero {
	position: relative;
	background: radial-gradient(circle at 20% 0%, #1a1a17 0%, var(--hn-black) 55%);
	color: var(--hn-white);
	padding: 130px 0 110px;
	overflow: hidden;
	border-bottom: 1px solid var(--hn-border);
}

.hn-hero__inner {
	position: relative;
	z-index: 2;
	max-width: 780px;
}

.hn-hero__inner--center {
	max-width: 820px;
	margin: 0 auto;
	text-align: center;
}

.hn-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: rgba(242, 183, 5, 0.1);
	border: 1px solid var(--hn-border);
	color: var(--hn-gold);
	font-family: var(--hn-font-heading);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 8px 18px;
	border-radius: 999px;
	margin-bottom: 26px;
}

.hn-hero__title {
	font-size: clamp(2.4rem, 5vw, 3.8rem);
	line-height: 1.08;
	color: var(--hn-white);
	margin: 0 0 22px;
}

.hn-hero__title em {
	font-style: normal;
	color: var(--hn-gold);
}

.hn-hero__lead {
	font-size: 1.18rem;
	line-height: 1.7;
	color: var(--hn-grey);
	margin: 0 0 38px;
	max-width: 620px;
}

.hn-hero__inner--center .hn-hero__lead { margin-left: auto; margin-right: auto; }

.hn-hero__actions {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.hn-hero__inner--center .hn-hero__actions { justify-content: center; }

.hn-hero__hexfield {
	position: absolute;
	top: 0;
	right: -8%;
	width: 58%;
	height: 100%;
	background-image: repeating-linear-gradient(120deg, rgba(242,183,5,0.05) 0 2px, transparent 2px 46px),
		repeating-linear-gradient(60deg, rgba(242,183,5,0.05) 0 2px, transparent 2px 46px);
	mask-image: linear-gradient(to left, black, transparent 70%);
	z-index: 1;
}

/* ==========================================================================
   6. Stats strip
   ========================================================================== */

.hn-stats {
	background: var(--hn-gold);
	padding: 0;
}
.hn-stats__inner {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}
.hn-stat {
	text-align: center;
	padding: 36px 16px;
	border-right: 1px solid rgba(16,15,13,0.14);
}
.hn-stat:last-child { border-right: none; }
.hn-stat__num {
	font-family: var(--hn-font-heading);
	font-weight: 700;
	font-size: 2.1rem;
	color: #100f0d;
	display: block;
}
.hn-stat__label {
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(16,15,13,0.7);
}

@media (max-width: 700px) {
	.hn-stats__inner { grid-template-columns: repeat(2, 1fr); }
	.hn-stat:nth-child(2) { border-right: none; }
}

/* ==========================================================================
   7. Services grid
   ========================================================================== */

.hn-services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.hn-service-card {
	background: var(--hn-white);
	border: 1px solid rgba(16,15,13,0.08);
	border-radius: var(--hn-radius);
	padding: 38px 32px;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hn-service-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--hn-shadow);
	border-color: var(--hn-border);
}

.hn-service-card__icon {
	margin-bottom: 22px;
}

.hn-service-card__title {
	font-size: 1.25rem;
	margin: 0 0 12px;
}

.hn-service-card__text {
	font-size: 0.97rem;
	line-height: 1.65;
	color: var(--hn-grey-dim);
	margin: 0 0 18px;
}

.hn-service-card__link {
	font-family: var(--hn-font-heading);
	font-weight: 600;
	font-size: 0.88rem;
	text-decoration: none;
	color: #100f0d;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.hn-service-card__link:hover { color: var(--hn-gold-deep); }

@media (max-width: 900px) {
	.hn-services-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   8. Why us / feature list
   ========================================================================== */

.hn-why {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.hn-why__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 22px;
}

.hn-why__item {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.hn-why__icon {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: 10px;
	background: rgba(242, 183, 5, 0.12);
	color: var(--hn-gold);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}

.hn-why__item h4 {
	margin: 0 0 4px;
	font-size: 1.05rem;
	color: var(--hn-white);
}
.hn-why__item p {
	margin: 0;
	font-size: 0.93rem;
	color: var(--hn-grey);
	line-height: 1.6;
}

.hn-why__panel {
	background: var(--hn-charcoal-2);
	border: 1px solid var(--hn-border);
	border-radius: var(--hn-radius);
	padding: 44px;
}

.hn-why__panel-title {
	color: var(--hn-white);
	font-size: 1.3rem;
	margin: 0 0 10px;
}

.hn-why__panel-text {
	color: var(--hn-grey);
	font-size: 0.95rem;
	line-height: 1.7;
	margin: 0 0 24px;
}

@media (max-width: 900px) {
	.hn-why { grid-template-columns: 1fr; }
}

/* ==========================================================================
   9. Process steps
   ========================================================================== */

.hn-process {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	counter-reset: hn-step;
}

.hn-step {
	position: relative;
	padding: 30px 24px 24px;
	border: 1px solid rgba(16,15,13,0.08);
	border-radius: var(--hn-radius);
	background: var(--hn-white);
}

.hn-step__num {
	font-family: var(--hn-font-heading);
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--hn-gold-deep);
	letter-spacing: 0.06em;
	margin-bottom: 14px;
	display: block;
}

.hn-step h4 {
	margin: 0 0 8px;
	font-size: 1.08rem;
}
.hn-step p {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.6;
	color: var(--hn-grey-dim);
}

@media (max-width: 900px) {
	.hn-process { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.hn-process { grid-template-columns: 1fr; }
}

/* ==========================================================================
   10. Testimonials
   ========================================================================== */

.hn-testimonials {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}

.hn-testimonial {
	background: var(--hn-charcoal-2);
	border: 1px solid var(--hn-border);
	border-radius: var(--hn-radius);
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.hn-testimonial__stars {
	color: var(--hn-gold);
	letter-spacing: 2px;
	font-size: 0.95rem;
}

.hn-testimonial__quote {
	font-size: 0.98rem;
	line-height: 1.7;
	color: var(--hn-off-white);
	margin: 0;
}

.hn-testimonial__author {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
}

.hn-testimonial__avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--hn-gold), var(--hn-gold-deep));
	display: flex;
	align-items: center;
	justify-content: center;
	color: #100f0d;
	font-weight: 700;
	font-family: var(--hn-font-heading);
	flex-shrink: 0;
}

.hn-testimonial__name {
	font-weight: 600;
	color: var(--hn-white);
	font-size: 0.92rem;
	display: block;
}
.hn-testimonial__role {
	font-size: 0.8rem;
	color: var(--hn-grey-dim);
}

@media (max-width: 900px) {
	.hn-testimonials { grid-template-columns: 1fr; }
}

/* ==========================================================================
   11. CTA banner
   ========================================================================== */

.hn-cta {
	position: relative;
	background: linear-gradient(120deg, #171512, var(--hn-black) 60%);
	border-radius: 24px;
	padding: 64px 56px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
	border: 1px solid var(--hn-border);
}

.hn-cta::before {
	content: '';
	position: absolute;
	width: 340px;
	height: 340px;
	background: radial-gradient(circle, rgba(242,183,5,0.18), transparent 70%);
	top: -120px;
	right: -80px;
}

.hn-cta__text { position: relative; z-index: 1; max-width: 520px; }
.hn-cta__title {
	color: var(--hn-white);
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	margin: 0 0 12px;
}
.hn-cta__lead {
	color: var(--hn-grey);
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
}
.hn-cta__actions { position: relative; z-index: 1; }

/* ==========================================================================
   12. Contact section
   ========================================================================== */

.hn-contact {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
}

.hn-contact__info-item {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	margin-bottom: 26px;
}
.hn-contact__info-item h4 {
	margin: 0 0 4px;
	font-size: 1rem;
}
.hn-contact__info-item p,
.hn-contact__info-item a {
	margin: 0;
	font-size: 0.93rem;
	color: var(--hn-grey-dim);
	text-decoration: none;
}
.hn-contact__info-item a:hover { color: var(--hn-gold-deep); }

.hn-form {
	background: var(--hn-white);
	border: 1px solid rgba(16,15,13,0.08);
	border-radius: var(--hn-radius);
	padding: 36px;
	box-shadow: var(--hn-shadow);
}

.hn-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.hn-form label {
	display: block;
	font-size: 0.82rem;
	font-weight: 600;
	margin: 0 0 6px;
	color: #201f1c;
}

.hn-form input,
.hn-form select,
.hn-form textarea {
	width: 100%;
	padding: 12px 14px;
	border-radius: 8px;
	border: 1px solid rgba(16,15,13,0.15);
	font-family: var(--hn-font-body);
	font-size: 0.94rem;
	margin-bottom: 18px;
	background: #fbfbfa;
}

.hn-form input:focus,
.hn-form select:focus,
.hn-form textarea:focus {
	outline: none;
	border-color: var(--hn-gold);
	box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.15);
}

.hn-form textarea { min-height: 120px; resize: vertical; }

.hn-form__submit {
	width: 100%;
	border: none;
	cursor: pointer;
}

.hn-form__notice {
	padding: 14px 16px;
	border-radius: 8px;
	font-size: 0.9rem;
	margin-bottom: 18px;
}
.hn-form__notice--success {
	background: rgba(46, 160, 67, 0.12);
	color: #1b7d34;
	border: 1px solid rgba(46, 160, 67, 0.3);
}
.hn-form__notice--error {
	background: rgba(220, 53, 69, 0.1);
	color: #b3212f;
	border: 1px solid rgba(220, 53, 69, 0.3);
}

@media (max-width: 900px) {
	.hn-contact { grid-template-columns: 1fr; }
	.hn-form__row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   13. Footer (overrides parent .site-footer)
   ========================================================================== */

.site-footer {
	background: var(--hn-black-soft);
	border-top: 1px solid var(--hn-border);
	padding-top: 20px;
}

.site-footer .footer-widgets {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;
	padding: 60px 0 40px;
}

.footer-widget-title {
	color: var(--hn-white);
	font-family: var(--hn-font-heading);
	font-size: 0.95rem;
	letter-spacing: 0.03em;
	margin-bottom: 16px;
}

.site-footer .footer-widget,
.site-footer .footer-widget a,
.site-footer .footer-widget p,
.site-footer .footer-widget li {
	color: var(--hn-grey);
	font-size: 0.9rem;
	line-height: 1.8;
}
.site-footer .footer-widget a { text-decoration: none; }
.site-footer .footer-widget a:hover { color: var(--hn-gold); }
.site-footer .footer-widget ul { list-style: none; margin: 0; padding: 0; }

.site-footer .site-credit {
	border-top: 1px solid var(--hn-border);
	padding: 22px 0;
	color: var(--hn-grey-dim);
	font-size: 0.82rem;
	text-align: center;
}
.site-footer .site-credit a { color: var(--hn-grey-dim); }

@media (max-width: 900px) {
	.site-footer .footer-widgets { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.site-footer .footer-widgets { grid-template-columns: 1fr; }
}

/* ==========================================================================
   14. Utility / responsive section spacing
   ========================================================================== */

@media (max-width: 900px) {
	.hn-section { padding: 64px 0; }
	.hn-hero { padding: 90px 0 70px; }
	.hn-cta { padding: 40px 28px; }
}

/* ==========================================================================
   15. Inner page hero (services/contact/blog pages)
   ========================================================================== */

.hn-page-hero {
	background: var(--hn-black);
	color: var(--hn-white);
	padding: 80px 0 60px;
	text-align: center;
	border-bottom: 1px solid var(--hn-border);
}
.hn-page-hero .entry-title,
.hn-page-hero h1 {
	color: var(--hn-white);
	font-size: clamp(2rem, 4vw, 2.8rem);
	margin: 0 0 12px;
}
.hn-page-hero p {
	color: var(--hn-grey);
	max-width: 600px;
	margin: 0 auto;
}
