/*
Theme Name: Brightline
Theme URI: https://example.com/brightline
Author: Craig Langman
Description: A clean, modern corporate theme for IT and technology businesses. Top contact bar, sticky navigation with call-to-action, hero section with image, five service cards and a gradient promise banner. Everything is editable from Appearance > Customize.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: brightline
Tags: one-column, custom-logo, custom-menu, featured-images, theme-options, translation-ready, business
*/

:root {
	--bl-primary: #a50f58;
	--bl-primary-dark: #7d0b43;
	--bl-ink: #1a1a2e;
	--bl-muted: #4b4b5f;
	--bl-bg: #ffffff;
	--bl-soft: #f6f4f6;
	--bl-radius: 10px;
	--bl-shadow: 0 6px 24px rgba(26, 26, 46, .08);
	--bl-max: 1280px;
	--bl-font: "Poppins", -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(--bl-font);
	color: var(--bl-ink);
	background: var(--bl-bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bl-primary); text-decoration: none; }
a:hover { color: var(--bl-primary-dark); }
svg { display: block; }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}
.bl-container { width: 100%; max-width: var(--bl-max); margin: 0 auto; padding: 0 32px; }

/* Buttons */
.bl-btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 15px 30px; border-radius: 8px; font-weight: 600; font-size: 1rem;
	border: 2px solid var(--bl-primary); cursor: pointer;
	transition: background .2s, color .2s, transform .2s;
}
.bl-btn:hover { transform: translateY(-1px); }
.bl-btn--solid { background: var(--bl-primary); color: #fff; }
.bl-btn--solid:hover { background: var(--bl-primary-dark); border-color: var(--bl-primary-dark); color: #fff; }
.bl-btn--outline { background: rgba(255,255,255,.6); color: var(--bl-primary); }
.bl-btn--outline:hover { background: var(--bl-primary); color: #fff; }
.bl-btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.bl-btn--ghost:hover { background: #fff; color: var(--bl-primary); }
.bl-btn svg { width: 18px; height: 18px; }

/* Top bar */
.bl-topbar { background: var(--bl-primary); color: #fff; font-size: .9rem; }
.bl-topbar .bl-container { display: flex; align-items: center; justify-content: space-between; min-height: 48px; gap: 20px; flex-wrap: wrap; }
.bl-topbar a { color: #fff; }
.bl-topbar__items, .bl-topbar__social { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.bl-topbar__items li { display: flex; align-items: center; gap: 8px; }
.bl-topbar__social { gap: 18px; }
.bl-topbar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bl-topbar__social svg { fill: currentColor; stroke: none; }

/* Header */
.bl-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(0,0,0,.05); }
.admin-bar .bl-header { top: 32px; }
.bl-header .bl-container { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 104px; }
.bl-logo img, .custom-logo { max-height: 72px; width: auto; }
.bl-logo__text { font-size: 1.8rem; font-weight: 700; color: var(--bl-primary); letter-spacing: .02em; }
.bl-nav { flex: 1; display: flex; justify-content: center; }
.bl-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 34px; }
.bl-nav li { position: relative; }
.bl-nav a { display: block; color: var(--bl-ink); font-weight: 500; padding: 10px 0; border-bottom: 2px solid transparent; }
.bl-nav a:hover,
.bl-nav .current-menu-item > a,
.bl-nav .current_page_item > a { color: var(--bl-primary); border-bottom-color: var(--bl-primary); }
.bl-nav .menu-item-has-children > a::after {
	content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px;
	border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
	transform: rotate(45deg) translateY(-3px);
}
.bl-nav .sub-menu {
	position: absolute; top: 100%; left: -16px; min-width: 220px; padding: 10px 0;
	flex-direction: column; align-items: stretch; gap: 0; background: #fff;
	border-radius: var(--bl-radius); box-shadow: var(--bl-shadow);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.bl-nav li:hover > .sub-menu, .bl-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.bl-nav .sub-menu a { padding: 10px 20px; border: 0; }
.bl-header__cta { padding: 14px 30px; border-radius: 12px; }
.bl-menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.bl-menu-toggle span { display: block; width: 26px; height: 2px; background: var(--bl-ink); margin: 6px 0; transition: .2s; }

/* Hero */
.bl-hero {
	position: relative; overflow: hidden;
	background: linear-gradient(120deg, #f5f3f6 0%, #ece8ee 55%, #f4dbe8 100%);
	padding: 70px 0 150px;
}
.bl-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .25; filter: blur(6px); }
.bl-hero .bl-container { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.bl-eyebrow { letter-spacing: .3em; font-size: .85rem; text-transform: uppercase; color: var(--bl-ink); margin: 0 0 18px; }
.bl-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.08; margin: 0 0 24px; font-weight: 700; letter-spacing: -.02em; }
.bl-hero h1 .bl-accent { display: block; color: var(--bl-primary); }
.bl-hero__text { font-size: 1.25rem; color: var(--bl-muted); max-width: 600px; margin: 0 0 34px; }
.bl-hero__buttons { display: flex; gap: 18px; flex-wrap: wrap; }
.bl-hero__media { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 380px; }
.bl-hero__media img { max-height: 470px; width: auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,.18)); }
.bl-hero__placeholder {
	width: 100%; max-width: 420px; aspect-ratio: 1; border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #fff, #e9c9d9 60%, #c9689a);
	opacity: .85;
}
.bl-speech { position: absolute; z-index: 2; top: 0; left: -90px; max-width: 190px; transform: rotate(-6deg); font-family: "Caveat", "Comic Sans MS", cursive; font-size: 1.15rem; color: var(--bl-ink); }
.bl-speech strong { display: block; font-size: 2rem; color: var(--bl-primary); border-bottom: 2px solid var(--bl-primary); margin-bottom: 8px; line-height: 1.1; }
.bl-hero__media img { margin-right: 90px; }
.bl-badge {
	position: absolute; right: -24px; bottom: 6px; background: var(--bl-primary); color: #fff;
	padding: 18px 22px; border-radius: 20px; transform: rotate(-8deg); max-width: 190px;
	font-family: "Caveat", "Comic Sans MS", cursive; font-size: 1.45rem; line-height: 1.15;
	box-shadow: 0 12px 30px rgba(165, 15, 88, .35);
}

/* Service cards */
.bl-services { position: relative; margin-top: -86px; z-index: 5; }
.bl-services__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.bl-card {
	display: flex; align-items: center; gap: 14px; background: #fff;
	padding: 16px 18px; border-radius: var(--bl-radius); box-shadow: var(--bl-shadow);
	color: var(--bl-ink); transition: transform .2s, box-shadow .2s;
}
.bl-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(26,26,46,.14); color: var(--bl-ink); }
.bl-card__icon { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--bl-primary); color: #fff; display: grid; place-items: center; }
.bl-card__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bl-card__body { flex: 1; min-width: 0; }
.bl-card__title { display: block; font-weight: 600; line-height: 1.25; }
.bl-card__sub { display: block; font-size: .9rem; color: var(--bl-muted); }
.bl-card__arrow { flex: none; width: 10px; height: 10px; border-right: 2px solid var(--bl-muted); border-top: 2px solid var(--bl-muted); transform: rotate(45deg); }

/* Promise banner */
.bl-banner {
	margin-top: 0; color: #fff; position: relative;
	background: linear-gradient(100deg, #2a1230 0%, #6c0b40 45%, #a50f58 100%);
	background-size: cover; background-position: center;
}
.bl-banner__overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(42,18,48,.92), rgba(125,11,67,.85) 55%, rgba(165,15,88,.85)); }
.bl-banner .bl-container { position: relative; display: grid; grid-template-columns: 1.2fr 2fr auto; gap: 40px; align-items: center; padding-top: 52px; padding-bottom: 52px; margin-top: 0; }
.bl-banner { margin-top: 40px; }
.bl-banner h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; font-weight: 700; }
.bl-pillars { display: grid; grid-template-columns: repeat(3, 1fr); }
.bl-pillar { text-align: center; padding: 0 20px; border-left: 1px solid rgba(255,255,255,.25); }
.bl-pillar:first-child { border-left: 0; }
.bl-pillar__icon svg { width: 38px; height: 38px; margin: 0 auto 8px; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.bl-pillar strong { display: block; font-size: 1.2rem; font-weight: 600; }
.bl-pillar span { display: block; font-size: 1.1rem; }

/* Footer */
.bl-footer { background: var(--bl-primary); color: #fff; }
.bl-footer .bl-container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 100px; flex-wrap: wrap; }
.bl-footer a { color: #fff; }
.bl-footer__items { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; font-size: 1.1rem; flex-wrap: wrap; }
.bl-footer__items li { display: flex; align-items: center; gap: 14px; padding: 0 30px; border-left: 1px solid rgba(255,255,255,.4); }
.bl-footer__items li:first-child { padding-left: 0; border-left: 0; }
.bl-footer__items svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.bl-footer__tag { letter-spacing: .25em; font-size: .8rem; text-transform: uppercase; }
.bl-footer__copy { width: 100%; text-align: center; font-size: .8rem; opacity: .8; padding: 0 0 18px; }

/* Content pages */
.bl-main { padding: 70px 0; }
.bl-content { max-width: 820px; margin: 0 auto; }
.bl-content h1, .bl-content h2, .bl-content h3 { line-height: 1.2; }
.bl-post { margin-bottom: 50px; padding-bottom: 40px; border-bottom: 1px solid #eee; }
.bl-post__title a { color: var(--bl-ink); }
.bl-post__meta { color: var(--bl-muted); font-size: .9rem; }
.bl-post__thumb { margin: 20px 0; border-radius: var(--bl-radius); overflow: hidden; }
.bl-pagination { display: flex; justify-content: space-between; }

/* Responsive */
@media (max-width: 1200px) {
	.bl-services__grid { grid-template-columns: repeat(3, 1fr); }
	.bl-nav ul { gap: 22px; }
}
@media (max-width: 1000px) {
	.bl-menu-toggle { display: block; }
	.bl-header .bl-container { min-height: 80px; flex-wrap: wrap; }
	.bl-nav { display: none; order: 5; width: 100%; flex-basis: 100%; padding-bottom: 16px; }
	.bl-nav.is-open { display: block; }
	.bl-nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
	.bl-nav a { padding: 12px 0; }
	.bl-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding-left: 16px; }
	.bl-header__cta { display: none; }
	.bl-hero .bl-container { grid-template-columns: 1fr; }
	.bl-hero__media { min-height: 280px; }
	.bl-banner .bl-container { grid-template-columns: 1fr; text-align: center; }
	.bl-banner .bl-btn { justify-self: center; }
}
@media (max-width: 640px) {
	.bl-container { padding: 0 20px; }
	.bl-topbar__items { gap: 14px; flex-wrap: wrap; }
	.bl-services__grid { grid-template-columns: 1fr; }
	.bl-pillars { grid-template-columns: 1fr; gap: 24px; }
	.bl-pillar { border-left: 0; }
	.bl-footer__items li { padding: 6px 0; border-left: 0; }
	.bl-hero { padding-bottom: 130px; }
}
@media (max-width: 782px) { .admin-bar .bl-header { top: 46px; } }
