/* ============================================================
   Heyward Marketing Lab — Astra-style Design System
   Based on Astra 4.4.x default design tokens
   ============================================================ */

/* --- Google Fonts (Astra popular combo) --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* --- Custom Properties --- */
:root {
	/* Astra-style palette */
	--ast-accent: #0170B9;
	--ast-accent-hover: #3a3a3a;
	--ast-heading: #3a3a3a;
	--ast-text: #3a3a3a;
	--ast-text-muted: #585858;
	--ast-border: #eaeaea;
	--ast-bg: #ffffff;
	--ast-bg-alt: #f5f5f5;
	--ast-card-bg: #ffffff;
	--ast-card-shadow: 0 1px 4px rgba(0,0,0,0.05);
	--ast-card-shadow-hover: 0 4px 14px rgba(0,0,0,0.1);
	--ast-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	--ast-font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Consolas', monospace;
	--ast-content-width: 768px;
	--ast-wide-width: 1200px;
	--ast-radius: 2px;
	--ast-transition: 0.2s ease;

	/* Brand override — original HML accent */
	--hml-primary: #31A8E0;
	--hml-primary-dark: #2589B8;
}

/* --- Dark Mode --- */
[data-theme="dark"] {
	--ast-bg: #111827;
	--ast-bg-alt: #1f2937;
	--ast-text: #d1d5db;
	--ast-text-muted: #9ca3af;
	--ast-heading: #f3f4f6;
	--ast-border: #374151;
	--ast-card-bg: #1f2937;
	--ast-card-shadow: 0 1px 4px rgba(0,0,0,0.3);
	--ast-card-shadow-hover: 0 4px 14px rgba(0,0,0,0.4);
	--ast-accent-hover: #f3f4f6;
}

[data-theme="dark"] img {
	opacity: 0.9;
}

/* --- Base Reset --- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	margin: 0;
	padding: 0;
	scroll-behavior: smooth;
}

body {
	font-family: var(--ast-font);
	font-size: 16px;
	color: var(--ast-text);
	background: var(--ast-bg);
	line-height: 1.65;
	margin: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	color: var(--hml-primary);
	text-decoration: none;
	transition: color var(--ast-transition);
}

a:hover {
	color: var(--hml-primary-dark);
}

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

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ast-font);
	color: var(--ast-heading);
	font-weight: 700;
	line-height: 1.4;
	margin-top: 0;
}

p {
	margin-top: 0;
}

/* --- Layout --- */
.hml-container {
	max-width: var(--ast-wide-width);
	margin: 0 auto;
	padding: 0 20px;
}

.hml-content {
	max-width: var(--ast-content-width);
	margin: 0 auto;
}

.hml-grid {
	display: grid;
	gap: 24px;
}

.hml-grid--2 { grid-template-columns: repeat(2, 1fr); }
.hml-grid--3 { grid-template-columns: repeat(3, 1fr); }
.hml-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   HEADER — Astra-style transparent, clean header
   ============================================================ */
.hml-header {
	background: var(--ast-bg);
	border-bottom: 1px solid var(--ast-border);
	padding: 0;
	position: sticky;
	top: 0;
	z-index: 100;
}

.hml-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: var(--ast-wide-width);
	margin: 0 auto;
	padding: 0 20px;
	min-height: 70px;
}

.hml-header__logo {
	font-size: 20px;
	font-weight: 700;
	color: var(--ast-heading);
	letter-spacing: -0.01em;
}

.hml-header__logo a {
	color: inherit;
}

.hml-header__logo span {
	color: var(--hml-primary);
	font-weight: 700;
}

/* --- Navigation (Astra style) --- */
.hml-nav {
	display: flex;
	align-items: center;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hml-nav > li {
	position: relative;
}

.hml-nav a {
	display: block;
	padding: 24px 16px;
	color: var(--ast-text);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	transition: color var(--ast-transition);
	border-bottom: 2px solid transparent;
}

.hml-nav a:hover {
	color: var(--hml-primary);
}

.hml-nav a[aria-current="page"] {
	color: var(--hml-primary);
	border-bottom-color: var(--hml-primary);
}

/* Theme toggle — Astra style */
.hml-theme-toggle {
	background: none;
	border: 1px solid var(--ast-border);
	border-radius: var(--ast-radius);
	padding: 6px 10px;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
	color: var(--ast-text);
	transition: all var(--ast-transition);
	margin-left: 4px;
}

.hml-theme-toggle:hover {
	border-color: var(--hml-primary);
	color: var(--hml-primary);
}

/* Mobile menu toggle */
.hml-menu-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: var(--ast-text);
	padding: 4px;
	line-height: 1;
}

/* ============================================================
   BUTTONS — Astra default (small radius, clean)
   ============================================================ */
.hml-btn {
	display: inline-block;
	padding: 12px 32px;
	border-radius: var(--ast-radius);
	font-family: var(--ast-font);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all var(--ast-transition);
	border: 2px solid transparent;
	text-align: center;
	letter-spacing: 0.01em;
	line-height: 1.4;
}

.hml-btn--primary {
	background: var(--hml-primary);
	color: #fff;
	border-color: var(--hml-primary);
}

.hml-btn--primary:hover {
	background: var(--hml-primary-dark);
	border-color: var(--hml-primary-dark);
	color: #fff;
}

.hml-btn--outline {
	background: transparent;
	color: var(--hml-primary);
	border-color: var(--hml-primary);
}

.hml-btn--outline:hover {
	background: var(--hml-primary);
	color: #fff;
}

/* ============================================================
   HERO — Astra page header style
   ============================================================ */
.hml-hero {
	padding: 60px 0 40px;
	text-align: center;
	background: var(--ast-bg);
}

.hml-hero__title {
	font-size: 42px;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 16px;
	color: var(--ast-heading);
	letter-spacing: -0.02em;
}

.hml-hero__title span {
	color: var(--hml-primary);
}

.hml-hero__subtitle {
	font-size: 18px;
	color: var(--ast-text-muted);
	max-width: 600px;
	margin: 0 auto 28px;
	line-height: 1.7;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.hml-section {
	padding: 60px 0;
}

.hml-section__title {
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 10px;
	color: var(--ast-heading);
}

.hml-section__subtitle {
	font-size: 16px;
	color: var(--ast-text-muted);
	margin-bottom: 32px;
	max-width: 600px;
	line-height: 1.65;
}

/* ============================================================
   CARDS — Astra/blog archive style
   ============================================================ */
.hml-card {
	background: var(--ast-card-bg);
	border: 1px solid var(--ast-border);
	border-radius: var(--ast-radius);
	overflow: hidden;
	transition: box-shadow var(--ast-transition), transform var(--ast-transition);
}

.hml-card:hover {
	box-shadow: var(--ast-card-shadow-hover);
	transform: translateY(-2px);
}

.hml-card__thumb {
	aspect-ratio: 16/9;
	overflow: hidden;
	background: var(--ast-bg-alt);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	border-bottom: 1px solid var(--ast-border);
}

.hml-card__thumb img,
.hml-card__thumb svg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hml-card__body {
	padding: 20px;
}

.hml-card__meta {
	font-size: 12px;
	color: var(--ast-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 8px;
	display: flex;
	gap: 12px;
	align-items: center;
}

.hml-card__title {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 8px;
}

.hml-card__title a {
	color: var(--ast-heading);
}

.hml-card__title a:hover {
	color: var(--hml-primary);
}

.hml-card__excerpt {
	font-size: 14px;
	color: var(--ast-text-muted);
	line-height: 1.65;
	margin: 0;
}

/* Card thumb gradient variants */
.hml-card__thumb--seo {
	background: linear-gradient(135deg, #0f766e, #2dd4bf);
}

.hml-card__thumb--design {
	background: linear-gradient(135deg, #1e40af, #60a5fa);
}

.hml-card__thumb--business {
	background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.hml-card__thumb--marketing {
	background: linear-gradient(135deg, #c2410c, #fb923c);
}

.hml-card__thumb--trends {
	background: linear-gradient(135deg, #be185d, #f472b6);
}

.hml-card__thumb--strategy {
	background: linear-gradient(135deg, #0369a1, #38bdf8);
}

.hml-card__thumb--fintech {
	background: linear-gradient(135deg, #0f4c75, #3282b8);
}

.hml-card__thumb--healthcare {
	background: linear-gradient(135deg, #065f46, #34d399);
}

.hml-card__thumb--personal {
	background: linear-gradient(135deg, #92400e, #fbbf24);
}

.hml-card__thumb--music {
	background: linear-gradient(135deg, #581c87, #c084fc);
}

.hml-card__thumb svg {
	width: 48px;
	height: 48px;
	opacity: 0.9;
}

/* Card link wrapper */
.hml-card-link {
	color: inherit;
	display: block;
}

.hml-card-link:hover {
	color: inherit;
}

/* ============================================================
   SERVICE CARDS — Astra icon-box style
   ============================================================ */
.hml-service {
	text-align: center;
	padding: 40px 28px;
	background: var(--ast-card-bg);
	border: 1px solid var(--ast-border);
	border-radius: var(--ast-radius);
	transition: all var(--ast-transition);
}

.hml-service:hover {
	box-shadow: var(--ast-card-shadow-hover);
	border-color: var(--hml-primary);
}

.hml-service__icon {
	font-size: 40px;
	margin-bottom: 16px;
	line-height: 1;
}

.hml-service__title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--ast-heading);
}

.hml-service__desc {
	font-size: 15px;
	color: var(--ast-text-muted);
	line-height: 1.65;
	margin: 0 0 8px;
}

/* ============================================================
   ARTICLE — Astra single post/page style
   ============================================================ */
.hml-article {
	padding: 20px 0 60px;
}

.hml-article__header {
	text-align: center;
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--ast-border);
}

.hml-article__title {
	font-size: 36px;
	font-weight: 700;
	line-height: 1.25;
	margin-bottom: 12px;
	color: var(--ast-heading);
}

.hml-article__meta {
	font-size: 14px;
	color: var(--ast-text-muted);
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}

.hml-article__content {
	font-size: 16px;
	line-height: 1.8;
	color: var(--ast-text);
}

.hml-article__content h2 {
	font-size: 24px;
	margin-top: 40px;
	margin-bottom: 16px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--ast-border);
}

.hml-article__content h3 {
	font-size: 20px;
	margin-top: 28px;
	margin-bottom: 12px;
}

.hml-article__content p {
	margin-bottom: 20px;
}

.hml-article__content ul,
.hml-article__content ol {
	margin-bottom: 20px;
	padding-left: 24px;
}

.hml-article__content li {
	margin-bottom: 6px;
	line-height: 1.65;
}

.hml-article__content blockquote {
	border-left: 3px solid var(--hml-primary);
	margin: 24px 0;
	padding: 16px 24px;
	background: var(--ast-bg-alt);
	border-radius: 0;
	font-style: italic;
	color: var(--ast-text-muted);
}

.hml-article__content code {
	background: var(--ast-bg-alt);
	padding: 2px 6px;
	border-radius: var(--ast-radius);
	font-family: var(--ast-font-mono);
	font-size: 0.875em;
}

.hml-article__content pre {
	background: var(--ast-bg-alt);
	padding: 20px;
	border-radius: var(--ast-radius);
	overflow-x: auto;
	margin-bottom: 24px;
	border: 1px solid var(--ast-border);
}

.hml-article__content pre code {
	background: none;
	padding: 0;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.hml-cta {
	background: var(--ast-bg-alt);
	border: 1px solid var(--ast-border);
	border-radius: var(--ast-radius);
	padding: 48px 32px;
	text-align: center;
	margin: 20px 0;
}

.hml-cta__title {
	font-size: 26px;
	font-weight: 700;
	margin-bottom: 10px;
	color: var(--ast-heading);
}

.hml-cta__text {
	color: var(--ast-text-muted);
	margin-bottom: 24px;
	max-width: 500px;
	margin-left: auto;
	margin-right: auto;
	font-size: 16px;
	line-height: 1.65;
}

/* ============================================================
   POST NAVIGATION
   ============================================================ */
.hml-post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--ast-border);
}

.hml-post-nav__item {
	padding: 16px;
	border: 1px solid var(--ast-border);
	border-radius: var(--ast-radius);
	transition: border-color var(--ast-transition);
}

.hml-post-nav__item:hover {
	border-color: var(--hml-primary);
}

.hml-post-nav__label {
	font-size: 12px;
	color: var(--ast-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 4px;
}

.hml-post-nav__title {
	font-weight: 600;
	font-size: 15px;
	color: var(--ast-heading);
}

/* ============================================================
   RELATED POSTS
   ============================================================ */
.hml-related {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--ast-border);
}

.hml-related__title {
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 20px;
	color: var(--ast-heading);
}

/* ============================================================
   FOOTER — Astra widget footer style
   ============================================================ */
.hml-footer {
	background: #1e293b;
	color: #cbd5e1;
	padding: 48px 0 24px;
	margin-top: 0;
	border-top: none;
}

.hml-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 32px;
	max-width: var(--ast-wide-width);
	margin: 0 auto;
	padding: 0 20px;
}

.hml-footer__brand p {
	font-size: 14px;
	color: #94a3b8;
	line-height: 1.65;
	margin-top: 12px;
}

.hml-footer .hml-header__logo {
	color: #f1f5f9;
}

.hml-footer .hml-header__logo span {
	color: var(--hml-primary);
}

.hml-footer h4 {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 16px;
	color: #f1f5f9;
}

.hml-footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.hml-footer li {
	margin-bottom: 8px;
}

.hml-footer a {
	color: #94a3b8;
	font-size: 14px;
	transition: color var(--ast-transition);
}

.hml-footer a:hover {
	color: #ffffff;
}

.hml-footer__bottom {
	text-align: center;
	padding-top: 24px;
	margin-top: 32px;
	border-top: 1px solid #334155;
	font-size: 13px;
	color: #64748b;
	max-width: var(--ast-wide-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

/* ============================================================
   BREADCRUMBS — Astra style
   ============================================================ */
.hml-breadcrumbs {
	font-size: 13px;
	color: var(--ast-text-muted);
	margin-bottom: 20px;
	display: flex;
	gap: 6px;
	align-items: center;
	flex-wrap: wrap;
}

.hml-breadcrumbs a {
	color: var(--ast-text-muted);
}

.hml-breadcrumbs a:hover {
	color: var(--hml-primary);
}

.hml-breadcrumbs__sep {
	font-size: 11px;
	color: var(--ast-text-muted);
}

/* ============================================================
   TAGS
   ============================================================ */
.hml-tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 24px;
}

.hml-tags a,
.hml-tag {
	padding: 4px 12px;
	background: var(--ast-bg-alt);
	border: 1px solid var(--ast-border);
	border-radius: var(--ast-radius);
	font-size: 12px;
	color: var(--ast-text-muted);
	transition: all var(--ast-transition);
	display: inline-block;
}

.hml-tags a:hover,
.hml-tag:hover {
	background: var(--hml-primary);
	border-color: var(--hml-primary);
	color: #fff;
}

/* ============================================================
   404
   ============================================================ */
.hml-404 {
	text-align: center;
	padding: 80px 0;
}

.hml-404__title {
	font-size: 120px;
	font-weight: 700;
	color: var(--ast-border);
	line-height: 1;
	margin-bottom: 12px;
}

/* ============================================================
   CONTACT FORM — Astra clean form style
   ============================================================ */
.hml-form {
	max-width: 600px;
}

.hml-form__group {
	margin-bottom: 20px;
}

.hml-form__group label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 15px;
	color: var(--ast-heading);
}

.hml-form__group input,
.hml-form__group textarea,
.hml-form__group select {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--ast-border);
	border-radius: var(--ast-radius);
	font-size: 15px;
	font-family: var(--ast-font);
	background: var(--ast-bg);
	color: var(--ast-text);
	transition: border-color var(--ast-transition), box-shadow var(--ast-transition);
}

.hml-form__group input:focus,
.hml-form__group textarea:focus,
.hml-form__group select:focus {
	outline: none;
	border-color: var(--hml-primary);
	box-shadow: 0 0 0 2px rgba(49, 168, 224, 0.12);
}

.hml-form__group textarea {
	min-height: 150px;
	resize: vertical;
}

.hml-form__submit {
	padding: 12px 32px;
	background: var(--hml-primary);
	color: #fff;
	border: 2px solid var(--hml-primary);
	border-radius: var(--ast-radius);
	font-size: 15px;
	font-weight: 600;
	font-family: var(--ast-font);
	cursor: pointer;
	transition: all var(--ast-transition);
}

.hml-form__submit:hover {
	background: var(--hml-primary-dark);
	border-color: var(--hml-primary-dark);
}

.hml-form__message {
	margin-top: 16px;
	padding: 12px 16px;
	border-radius: var(--ast-radius);
	font-size: 14px;
}

.hml-form__message--success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.hml-form__message--error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Honeypot */
.hml-form__hp {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	overflow: hidden;
}

/* ============================================================
   CONTACT INFO
   ============================================================ */
.hml-contact-info {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 32px;
}

.hml-contact-info__item {
	padding: 24px;
	background: var(--ast-card-bg);
	border: 1px solid var(--ast-border);
	border-radius: var(--ast-radius);
}

.hml-contact-info__icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
	color: #fff;
	background: var(--hml-primary);
}

.hml-contact-info__item--email .hml-contact-info__icon { background: linear-gradient(135deg, #0369a1, #38bdf8); }
.hml-contact-info__item--phone .hml-contact-info__icon { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
.hml-contact-info__item--location .hml-contact-info__icon { background: linear-gradient(135deg, #7c3aed, #a78bfa); }

.hml-contact-info__label {
	font-weight: 600;
	margin-bottom: 4px;
	font-size: 15px;
	color: var(--ast-heading);
}

.hml-contact-info__value {
	color: var(--ast-text-muted);
	font-size: 14px;
}

/* ============================================================
   CASE STUDY META
   ============================================================ */
.hml-case-meta {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
	padding: 24px;
	background: var(--ast-bg-alt);
	border: 1px solid var(--ast-border);
	border-radius: var(--ast-radius);
	margin-bottom: 28px;
}

.hml-case-meta__item {
	font-size: 14px;
}

.hml-case-meta__label {
	font-weight: 600;
	display: block;
	margin-bottom: 4px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--ast-text-muted);
}

/* ============================================================
   RESPONSIVE — Astra breakpoints
   ============================================================ */
@media (max-width: 921px) {
	.hml-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.hml-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
	.hml-header__inner {
		flex-wrap: wrap;
	}

	.hml-nav {
		display: none;
		width: 100%;
		flex-direction: column;
		padding: 16px 0;
		gap: 0;
		border-top: 1px solid var(--ast-border);
	}

	.hml-nav.is-open {
		display: flex;
	}

	.hml-nav a {
		padding: 12px 0;
		border-bottom: none;
	}

	.hml-nav a[aria-current="page"] {
		border-bottom: none;
	}

	.hml-menu-toggle {
		display: block;
	}

	.hml-hero {
		padding: 36px 0 28px;
	}

	.hml-hero__title {
		font-size: 28px;
	}

	.hml-hero__subtitle {
		font-size: 16px;
	}

	.hml-section {
		padding: 40px 0;
	}

	.hml-grid--2,
	.hml-grid--3,
	.hml-grid--4 {
		grid-template-columns: 1fr;
	}

	.hml-footer__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.hml-post-nav {
		grid-template-columns: 1fr;
	}

	.hml-contact-info {
		grid-template-columns: 1fr;
	}

	.hml-case-meta {
		grid-template-columns: 1fr;
	}

	.hml-article__title {
		font-size: 26px;
	}

	.hml-404__title {
		font-size: 72px;
	}
}
