/*
Theme Name: HumanLoop AI
Theme URI: https://humanloop.ai/
Author: HumanLoop AI
Description: Block theme for HumanLoop AI, rebuilt from the Lovable site. Every homepage section is a block pattern you can edit in the Site Editor.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Version: 2.0.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: humanloop
*/

:root {
	--hl-navy: #111b2b;
	--hl-slate: #434e5e;
	--hl-muted: #5c646f;
	--hl-surface: #f9fafc;
	--hl-hairline: #dbdee3;
	--hl-red: #d40c1a;
	--hl-gradient: linear-gradient(90deg, #f59e3c 0%, #ec4e7a 50%, #8b5cf6 100%);
}

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--hl-navy); color: #fff; }

/* ------------------------------------------------ Sections */

.hl-section { border-bottom: 1px solid var(--hl-hairline); padding-top: 5rem; padding-bottom: 5rem; }
.hl-tone-white { background: #fff; }
.hl-tone-grey { background: var(--hl-surface); }
.hl-tone-navy { background: var(--hl-navy); color: #f9fafc; border-bottom: 0; }

.hl-title { max-width: 48rem; margin-bottom: 3rem; }
.hl-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hl-slate); margin: 0; }
.hl-title > .hl-h2 { font-size: 32px; line-height: 1.25; margin-top: 1rem; }
.hl-title > .hl-intro { font-size: 17px; line-height: 1.625; color: var(--hl-slate); margin-top: 1rem; }
.hl-center { text-align: center; }

.hl-tone-navy .hl-eyebrow { color: rgba(255, 255, 255, 0.7); }
.hl-tone-navy .hl-h2 { color: #f9fafc; }
.hl-tone-navy .hl-intro { color: rgba(255, 255, 255, 0.8); }
.hl-tone-navy .hl-dash { color: rgba(255, 255, 255, 0.85); }

/* ------------------------------------------------ Grids (equal-width columns) */

.hl-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: stretch; }
.hl-grid > * { margin: 0 !important; min-width: 0; }
.hl-grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) {
	.hl-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
	.hl-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hl-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hl-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hl-title > .hl-h2 { font-size: 40px; }
}
@media (min-width: 1024px) {
	.hl-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.hl-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ------------------------------------------------ Cards */

.hl-card { height: 100%; box-sizing: border-box; border: 1px solid var(--hl-hairline); background: #fff; padding: 2rem; color: var(--hl-navy); }
.hl-card > * { margin-top: 0; margin-bottom: 0; }
.hl-card > * + * { margin-top: 0.75rem; }

.hl-h3 { font-size: 22px; line-height: 1.3; color: var(--hl-navy); margin: 0; }
.hl-h3-lg { font-size: 24px; }
.hl-h3-sm { font-size: 20px; }
.hl-card > .hl-mt-lg, .hl-form-card > .hl-mt-lg { margin-top: 1.5rem; }
.hl-card > .hl-body, .hl-form-card > .hl-body { font-size: 16px; line-height: 1.625; color: var(--hl-slate); }
.hl-card > .hl-body.hl-ink { color: var(--hl-navy); }
.hl-card > .hl-meta { font-size: 14px; line-height: 1.625; color: var(--hl-navy); margin-top: 1.5rem; }
.hl-card > .hl-textlink { font-size: 15px; font-weight: 500; margin-top: 1.5rem; }
.hl-textlink a { color: var(--hl-navy); text-decoration: none; }
.hl-textlink a:hover { opacity: 0.7; }

.hl-step { font-size: 15px; font-weight: 600; color: var(--hl-slate); }
.hl-card > .hl-eyebrow { font-size: 13px; }

.hl-initials { display: flex; align-items: center; justify-content: center; width: 5rem; height: 5rem; border: 1px solid var(--hl-hairline); background: var(--hl-surface); font-size: 22px; font-weight: 600; color: var(--hl-navy); }
.hl-card > .hl-role { font-size: 15px; font-weight: 500; color: var(--hl-slate); margin-top: 0.25rem; }

.hl-stat { font-family: var(--wp--preset--font-family--plex); font-size: 48px; font-weight: 600; line-height: 1; color: var(--hl-navy); }
.hl-card > .hl-stat + .hl-body { margin-top: 1.25rem; }
.hl-card > .hl-source { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hl-muted); margin-top: 1rem; }

.hl-card > .hl-price { font-size: 16px; font-weight: 500; color: var(--hl-slate); }
.hl-card > .hl-price-md { font-size: 20px; font-weight: 600; color: var(--hl-navy); }
.hl-card > .hl-length { font-size: 14px; color: var(--hl-slate); margin-top: 0; }
.hl-card > .hl-price-lg { font-size: 24px; font-weight: 600; color: var(--hl-navy); margin-top: 1.5rem; }
.hl-card > .wp-block-buttons { margin-top: 1.5rem; }
.hl-card > .hl-price-lg + .wp-block-buttons { margin-top: 1rem; }

.hl-dash-list { margin-top: 1.5rem !important; }
.hl-dash { font-size: 16px; color: var(--hl-slate); margin: 0; }
.hl-dash + .hl-dash { margin-top: 0.5rem; }
.hl-col > .hl-dash { margin-top: 0.75rem; }
.hl-col > .hl-title + .hl-dash { margin-top: 0; }

.hl-client { font-size: 15px; font-weight: 600; color: var(--hl-navy); }
.hl-card > .hl-label { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hl-slate); margin-top: 1.25rem; }
.hl-card > .hl-label + .hl-body { margin-top: 0.5rem; }
.hl-card > .hl-client + .hl-label { margin-top: 1.5rem; }

.hl-tag { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hl-slate); }
.hl-card > .hl-tag + .hl-h3 { margin-top: 1rem; }

.hl-card > .hl-quote { font-size: 18px; line-height: 1.625; color: var(--hl-navy); }
.hl-card > .hl-quote-name { font-size: 15px; font-weight: 500; color: var(--hl-navy); margin-top: 1.5rem; }
.hl-card > .hl-quote-org { font-size: 14px; color: var(--hl-slate); margin-top: 0; }

.hl-trust-item { text-align: center; font-size: 16px; font-weight: 500; color: var(--hl-navy); margin: 0; }
.hl-container > .hl-eyebrow.hl-center { margin-bottom: 2rem; }

/* Logo in the loop section */
.hl-loop-logo { display: flex; justify-content: center; margin: 0 0 2.5rem !important; }
.hl-loop-logo img { height: 80px; width: auto; }

/* Regulatory list */
.hl-reg { border-top: 1px solid var(--hl-hairline); }
.hl-reg-row { display: grid; gap: 0.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--hl-hairline); }
.hl-reg-row > * { margin: 0 !important; }
.hl-reg-year { font-size: 18px; font-weight: 600; color: var(--hl-navy); }
.hl-reg-name { font-size: 18px; font-weight: 500; color: var(--hl-navy); }
.hl-reg-row > .hl-body { font-size: 16px; line-height: 1.625; color: var(--hl-slate); }
@media (min-width: 768px) { .hl-reg-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }

/* ------------------------------------------------ Hero */

.hl-hero { padding-top: 6rem; padding-bottom: 6rem; text-align: center; }
.hl-hero .hl-h1 { font-size: 40px; line-height: 1.2; font-weight: 600; color: #f9fafc; max-width: 56rem; margin: 1.5rem auto 0; }
.hl-hero .hl-hero-lead { font-size: 18px; line-height: 1.625; color: rgba(255, 255, 255, 0.8); max-width: 42rem; margin: 1.5rem auto 0; }
.hl-hero .hl-hero-buttons { justify-content: center; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 768px) { .hl-hero .hl-h1 { font-size: 60px; } }

/* ------------------------------------------------ Buttons */

.wp-block-button .wp-block-button__link { border-radius: 0; font-size: 15px; font-weight: 500; line-height: 1.5; text-decoration: none; transition: filter 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.hl-btn-gradient .wp-block-button__link { background: var(--hl-gradient); color: #fff; padding: 0.875rem 1.75rem; border: 0; }
.hl-btn-gradient .wp-block-button__link:hover { filter: brightness(1.05); }
.hl-btn-ghost-light .wp-block-button__link { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); padding: calc(0.875rem - 1px) 1.75rem; }
.hl-btn-ghost-light .wp-block-button__link:hover { border-color: #fff; }
.hl-btn-outline .wp-block-button__link { background: transparent; color: var(--hl-navy); border: 1px solid var(--hl-navy); padding: 0.625rem 1.25rem; }
.hl-btn-outline .wp-block-button__link:hover { background: var(--hl-navy); color: #f9fafc; }
.hl-btn-navy .wp-block-button__link { background: var(--hl-navy); color: #f9fafc; border: 0; padding: 0.625rem 1.25rem; }
.hl-btn-navy .wp-block-button__link:hover { opacity: 0.9; }
.wp-block-buttons > .hl-btn-block { width: 100%; }
.hl-btn-block .wp-block-button__link { display: block; width: 100%; padding: 0.75rem 1.25rem; text-align: center; }

/* ------------------------------------------------ Two-column strips (lead magnet, enquiry) */

.hl-col > .hl-title { margin-bottom: 1.5rem; }
.hl-box { border: 1px solid var(--hl-hairline); background: var(--hl-surface); padding: 2rem; align-self: start; }
.hl-form-card { border: 1px solid var(--hl-hairline); background: #fff; padding: 2rem; color: var(--hl-navy); align-self: start; }
.hl-form-card > * { margin-top: 0; margin-bottom: 0; }
.hl-form-card > .hl-body { margin-top: 0.75rem; }
.hl-form-logo img, .hl-footer-logo img { height: 56px; width: auto; }
.hl-form-logo, .hl-footer-logo { margin: 0 !important; }
.hl-tone-navy .hl-grid-2 { gap: 3rem; }
#briefing .hl-grid-2 { gap: 3rem; }

/* ------------------------------------------------ Forms */

.hl-form { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.hl-box .hl-form { margin-top: 0; }
.hl-form label { display: block; }
.hl-form .hl-label-text { display: block; margin-bottom: 0.5rem; font-size: 14px; font-weight: 500; color: var(--hl-slate); }
.hl-box .hl-form .hl-label-text { color: var(--hl-navy); }
.hl-form input[type="text"], .hl-form input[type="email"], .hl-form input[type="tel"], .hl-form select, .hl-form textarea {
	width: 100%; box-sizing: border-box; border: 1px solid var(--hl-hairline); border-radius: 0; background: #fff; padding: 0.75rem; font: inherit; font-size: 16px; color: var(--hl-navy); outline: none;
}
.hl-form textarea { resize: none; }
.hl-form input:focus, .hl-form select:focus, .hl-form textarea:focus { border-color: var(--hl-navy); }
.hl-form .has-error input, .hl-form .has-error select, .hl-form .has-error textarea { border-color: var(--hl-red); }
.hl-form .hl-error { display: block; margin-top: 0.5rem; font-size: 14px; color: var(--hl-red); }
.hl-form .hl-consent { display: flex; gap: 0.75rem; font-size: 15px; line-height: 1.625; color: var(--hl-slate); }
.hl-form .hl-consent input { margin-top: 0.3rem; width: 1rem; height: 1rem; flex-shrink: 0; accent-color: var(--hl-navy); }
.hl-form .hl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hl-form button { width: 100%; border: 0; border-radius: 0; cursor: pointer; padding: 0.875rem 1.25rem; font: inherit; font-size: 15px; font-weight: 500; color: #fff; }
.hl-form .hl-submit-gradient { background: var(--hl-gradient); }
.hl-form .hl-submit-gradient:hover { filter: brightness(1.05); }
.hl-form .hl-submit-navy { background: var(--hl-navy); }
.hl-form .hl-small { font-size: 13px; line-height: 1.625; color: var(--hl-slate); margin: 0; }
.hl-form-done { margin-top: 1.5rem; border: 1px solid var(--hl-hairline); background: var(--hl-surface); padding: 1.5rem; }
.hl-box .hl-form-done { margin-top: 0; background: #fff; }
.hl-form-done strong { display: block; font-size: 18px; color: var(--hl-navy); }
.hl-form-done p { margin: 0.75rem 0 0; font-size: 16px; line-height: 1.625; color: var(--hl-slate); }

/* ------------------------------------------------ Header */

.hl-header { border-bottom: 1px solid var(--hl-hairline); background: #fff; }
.hl-header-inner { padding-top: 1rem; padding-bottom: 1rem; gap: 1.5rem; }
.hl-header .wp-block-site-logo img { height: auto; }
.hl-header-right { gap: 2rem; }
.hl-nav { gap: 2rem; font-size: 15px; font-weight: 500; }
.hl-nav .wp-block-navigation-item__content { color: var(--hl-slate); text-decoration: none; }
.hl-nav .wp-block-navigation-item__content:hover { color: var(--hl-navy); }
.hl-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { color: var(--hl-navy); font-size: 20px; }
.hl-header-cta { margin: 0 !important; }
@media (max-width: 781px) { .hl-header .hl-header-cta { display: none !important; } }

/* ------------------------------------------------ Footer */

.hl-footer { background: #fff; padding-top: 4rem; padding-bottom: 4rem; }
.hl-footer-grid { gap: 2.5rem; }
@media (min-width: 768px) { .hl-footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hl-footer-col > * { margin: 0; }
.hl-footer-col > .hl-body { margin-top: 1.25rem; font-size: 15px; line-height: 1.625; color: var(--hl-slate); }
.hl-footer-title { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hl-slate); margin-bottom: 1rem !important; }
.hl-footer-link { font-size: 15px; }
.hl-footer-link + .hl-footer-link { margin-top: 0.625rem !important; }
.hl-footer-link a { color: var(--hl-navy); text-decoration: none; }
.hl-footer-link a:hover { opacity: 0.7; }
.hl-footer-bottom { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 3rem !important; padding-top: 1.5rem; border-top: 1px solid var(--hl-hairline); font-size: 14px; color: var(--hl-slate); }
.hl-footer-bottom > * { margin: 0 !important; }
.hl-footer-legal a { color: var(--hl-slate); text-decoration: none; margin-right: 1.5rem; }
.hl-footer-legal a:last-child { margin-right: 0; }
.hl-footer-legal a:hover { color: var(--hl-navy); }
@media (min-width: 768px) { .hl-footer-bottom { flex-direction: row; justify-content: space-between; } }

/* ------------------------------------------------ Pages and posts */

.hl-page-title { font-size: 40px; margin: 0 0 2rem; }
.hl-main:not(.hl-landing) .wp-block-post-content > * + * { margin-top: 1.25rem; }

/* ------------------------------------------------ v1.1 additions */

/* Smaller hero for inner pages */
.hl-hero.hl-hero-sm { padding-top: 4.5rem; padding-bottom: 4.5rem; }
@media (min-width: 768px) { .hl-hero.hl-hero-sm .hl-h1 { font-size: 48px; } }

/* Landing template: sections sit edge to edge */
.hl-landing .wp-block-post-content > * { margin-top: 0; margin-bottom: 0; }

/* Package cards: button pinned to the bottom so rows line up */
#packages .hl-card { display: flex; flex-direction: column; }
#packages .hl-card > .wp-block-buttons { margin-top: auto; padding-top: 1.5rem; }
#packages .hl-card > .hl-label { margin-top: 1.5rem; }
#packages .hl-card > .hl-dash-list { margin-top: 0.75rem !important; }
#packages .hl-card > .hl-price-md + .hl-body { margin-top: 1rem; }
#resources .hl-card { display: flex; flex-direction: column; }
#resources .hl-card > .hl-price-lg { margin-top: auto; padding-top: 1.5rem; }

/* Services overview */
.hl-grid-5 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .hl-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .hl-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.hl-card.hl-card-sm { padding: 1.5rem; }

/* Centred call to action */
.hl-title.hl-cta { margin-left: auto; margin-right: auto; margin-bottom: 0; }
.hl-cta .hl-hero-buttons { justify-content: center; margin-top: 2rem; }

/* Contact details in the enquiry section */
.hl-contact-details { margin-top: 2rem !important; display: grid; gap: 0.25rem; }
.hl-contact-details > * { margin: 0 !important; }
.hl-contact-label { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.hl-contact-label:not(:first-child) { margin-top: 1rem !important; }
.hl-contact-value { font-size: 16px; line-height: 1.6; color: #f9fafc; }
.hl-contact-value a { color: #f9fafc; }
.hl-footer-address { margin-top: 0.625rem !important; font-size: 15px; line-height: 1.6; color: var(--hl-slate); }
.hl-form .hl-consent a { color: var(--hl-navy); }

/* Legal / policy pages */
.hl-main:not(.hl-landing) .wp-block-post-content h2 { font-size: 22px; margin-top: 2.5rem; }
.hl-main:not(.hl-landing) .wp-block-post-content p, .hl-main:not(.hl-landing) .wp-block-post-content li { color: var(--hl-slate); line-height: 1.7; }
.hl-notice { border: 1px solid var(--hl-hairline); background: var(--hl-surface); padding: 1.25rem 1.5rem; }

/* Contact link in the menu only where the header button is hidden */
@media (min-width: 782px) { .hl-nav .hl-nav-mobile { display: none !important; } }

/* ------------------------------------------------ v2.0 simplified homepage */

.hl-h1 .hl-accent { background: var(--hl-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hl-hero .hl-eyebrow { letter-spacing: 0.24em; }
.hl-section { padding-top: 5.5rem; padding-bottom: 5.5rem; }

/* Chips (leaflet tags) */
.hl-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; }
.hl-card > .hl-chips { margin-top: 1.25rem; }
.hl-chip { display: inline-block; padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--hl-surface); border: 1px solid var(--hl-hairline); font-size: 13px; font-weight: 500; color: var(--hl-navy); line-height: 1.4; }

/* Service cards */
.hl-card.hl-svc { border-radius: 14px; }
.hl-card.hl-svc > .hl-body { margin-top: 0.75rem; }

/* Bands: healthcare (dark) and FOI (light) */
.hl-band { margin-top: 1.5rem !important; border-radius: 14px; padding: 2rem; background: var(--hl-navy); }
.hl-band > * { margin: 0; }
.hl-band .hl-h3 { color: #f9fafc; }
.hl-band > .hl-body { margin-top: 0.75rem; color: rgba(255, 255, 255, 0.8); font-size: 16px; line-height: 1.625; }
.hl-band.hl-band-light { background: #f1effa; border: 1px solid #e4e0f5; display: grid; gap: 1.5rem; align-items: center; }
.hl-band.hl-band-light .hl-h3 { color: var(--hl-navy); }
.hl-band-text > * { margin: 0; }
.hl-band-text > .hl-body { margin-top: 0.75rem; font-size: 16px; line-height: 1.625; color: var(--hl-slate); }
.hl-band-text > .wp-block-buttons { margin-top: 1.25rem; }
.hl-band-light .hl-chip { background: #fff; }
@media (min-width: 900px) { .hl-band.hl-band-light { grid-template-columns: 1fr 1.1fr; gap: 2.5rem; } }

/* Package cards */
.hl-card.hl-pkg { border-radius: 14px; position: relative; overflow: hidden; display: flex; flex-direction: column; padding-top: 2.25rem; }
.hl-card.hl-pkg::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--hl-gradient); }
.hl-pkg-price { font-family: var(--wp--preset--font-family--plex); font-size: 30px; font-weight: 600; color: #8b5cf6; line-height: 1.2; }
.hl-pkg-price .hl-from { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hl-muted); margin-right: 0.25rem; vertical-align: middle; }
.hl-card.hl-pkg > .hl-pkg-price { margin-top: 0.5rem; }
.hl-bullets { margin-top: 1.25rem !important; }
.hl-bullet { position: relative; padding-left: 1.25rem; margin: 0; font-size: 16px; line-height: 1.5; color: var(--hl-slate); }
.hl-bullet + .hl-bullet { margin-top: 0.5rem; }
.hl-bullet::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: #ec4e7a; }
.hl-card.hl-pkg > .hl-pkg-note { margin-top: 1rem; font-size: 14px; font-style: italic; color: var(--hl-muted); }
.hl-card.hl-pkg > .wp-block-buttons { margin-top: auto; padding-top: 1.75rem; }

/* Template price list */
.hl-tpl-list { display: grid; column-gap: 3rem; border-top: 1px solid var(--hl-hairline); }
@media (min-width: 768px) { .hl-tpl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hl-tpl-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 0; border-bottom: 1px dashed var(--hl-hairline); }
.hl-tpl-row > * { margin: 0 !important; }
.hl-tpl-name { font-size: 17px; color: var(--hl-navy); }
.hl-tpl-price { font-size: 17px; font-weight: 600; color: #8b5cf6; white-space: nowrap; }
#templates .hl-tpl-list + .wp-block-buttons { margin-top: 2rem; }

/* Footer: three columns */
@media (min-width: 768px) { .hl-footer-grid.hl-footer-grid-3 { grid-template-columns: 2fr 1fr 1fr; } }
.hl-form-card { border-radius: 14px; }
.hl-form-card > .hl-h3 + .hl-body { margin-top: 0.75rem; }
