/*
Theme Name: Bilal Kureishi
Theme URI: https://bilalkureishi.com/
Author: Bilal Kureishi
Description: A bold, dark-and-green personal brand block theme for Bilal Kureishi — SEO strategist, founder of Cloud SEO Dubai and host of Let's Talk SEO. Fully editable with the WordPress block editor and Site Editor.
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.6.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bilal-kureishi
Tags: block-theme, full-site-editing, one-column, custom-colors, custom-logo, editor-style, block-patterns
*/

/* =========================================================
   Layout basics
   ========================================================= */
.wp-site-blocks { position: relative; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.wp-site-blocks > main, main.wp-block-group { margin-top: 0; }
.bk-landing > * { margin-block-start: 0 !important; }
.bk-mt-40 { margin-top: var(--wp--preset--spacing--40) !important; }
.bk-mt-50 { margin-top: var(--wp--preset--spacing--50) !important; }
.bk-maxw { max-width: 780px !important; margin-left: 0 !important; }
.is-layout-constrained > .bk-maxw { margin-left: max(0px, calc((100% - 1144px) / 2)) !important; margin-right: auto !important; }
.bk-w610 { max-width: 610px !important; margin-left: max(0px, calc((100% - 1144px) / 2)) !important; margin-right: auto !important; }
.bk-hero-home h1 { font-size: clamp(2.2rem, 3.4vw, 2.75rem) !important; }
.wp-block-social-links.is-style-default:not(.has-small-icon-size) .wp-social-link { box-shadow: 0 3px 10px rgba(0,0,0,.08); }
.bk-footer .wp-block-social-links { margin-bottom: 1rem; }
.bk-right { text-align: right; }

/* =========================================================
   Header (overlays dark hero sections automatically)
   ========================================================= */
.bk-header { position: relative; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.10); }
body:has(.bk-dark-top) .bk-header {
	position: absolute; top: 0; left: 0; right: 0; background: transparent !important;
}
.bk-dark-top { padding-top: calc(var(--wp--preset--spacing--60) + 92px) !important; }
.bk-hero.bk-dark-top { padding-top: calc(var(--wp--preset--spacing--50) + 92px) !important; }
.bk-header .wp-block-site-logo img { display: block; }
.bk-header .wp-block-navigation { font-size: 0.95rem; }
.bk-header .wp-block-navigation a { text-decoration: none; }

/* ---- Browser-tab style menu (desktop) ---- */
.bk-header { padding-bottom: 0 !important; }
.bk-header > .wp-block-group { align-items: flex-end !important; }
.bk-header > .wp-block-group > .wp-block-group:first-child { padding-bottom: 1rem; }
.bk-header .wp-block-navigation { align-self: flex-end; margin-bottom: -1px; }
.bk-header .wp-block-navigation__container { gap: 4px !important; align-items: flex-end !important; }
.bk-header .wp-block-navigation .wp-block-navigation-item__content {
	position: relative; display: block; padding: 10px 16px 11px;
	color: #c9cdd2 !important; background: rgba(255,255,255,.045);
	border: 1px solid rgba(255,255,255,.10); border-bottom: 0; border-radius: 10px 10px 0 0;
	transition: background .2s ease, color .2s ease, padding .2s ease, box-shadow .2s ease;
}
.bk-header .wp-block-navigation .wp-block-navigation-item__content:hover {
	background: rgba(255,255,255,.10); color: #fff !important;
}
.bk-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.bk-header .wp-block-navigation .wp-block-navigation-item__content[aria-current="page"] {
	z-index: 2; color: #fff !important; padding-top: 16px; /* raised above the other tabs */
	background: linear-gradient(180deg, #1d2a1a 0%, #0d130c 100%);
	border-color: rgba(91,227,59,.45); box-shadow: inset 0 3px 0 var(--wp--preset--color--accent), 0 -8px 22px rgba(91,227,59,.18);
}
/* hide the tab styling inside the mobile overlay menu */
.bk-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	background: none !important; border: 0 !important; box-shadow: none !important; padding: 4px 0 !important; color: #fff !important;
}
.bk-header .wp-block-navigation__responsive-container.is-menu-open .current-menu-item > .wp-block-navigation-item__content { color: var(--wp--preset--color--accent) !important; }
@media (max-width: 599px) {
	.bk-header { padding-bottom: 1rem !important; }
	.bk-header > .wp-block-group { align-items: center !important; }
	.bk-header > .wp-block-group > .wp-block-group:first-child { padding-bottom: 0; }
	.bk-header .wp-block-navigation { align-self: center; margin-bottom: 0; }
}
@media (min-width: 600px) and (max-width: 1180px) {
	.bk-header .wp-block-navigation { font-size: .82rem; }
	.bk-header .wp-block-navigation .wp-block-navigation-item__content { padding: 9px 10px 10px; }
	.bk-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content { padding-top: 14px; }
	.bk-header .wp-block-site-title { font-size: 1.2rem !important; }
}
.bk-header .wp-block-navigation__responsive-container.is-menu-open { padding: 2rem; }
.bk-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 1.25rem; font-size: 1.25rem; }

/* =========================================================
   KB logo button — retro press effect
   ========================================================= */
.wp-block-site-logo a, .bk-logo-btn a { display: inline-block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.wp-block-site-logo img, .bk-logo-btn img {
	transition: transform .12s cubic-bezier(.3,.7,.4,1), filter .12s ease;
	filter: drop-shadow(0 3px 4px rgba(0,0,0,.35));
}
.wp-block-site-logo a:hover img, .bk-logo-btn a:hover img { transform: translateY(-1px); filter: drop-shadow(0 5px 6px rgba(0,0,0,.4)) brightness(1.05); }
.wp-block-site-logo a:active img, .bk-logo-btn a:active img,
.wp-block-site-logo.is-pressed img, .bk-logo-btn.is-pressed img {
	transform: translateY(10%) scale(.9); filter: drop-shadow(0 0 0 rgba(0,0,0,0)) brightness(.8) saturate(1.15);
	transition-duration: .06s;
}
.wp-block-site-logo a:focus-visible, .bk-logo-btn a:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 4px; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { .wp-block-site-logo img, .bk-logo-btn img { transition: none; } }

/* =========================================================
   Heroes
   ========================================================= */
.bk-hero { overflow: hidden; position: relative; }
.bk-hero .wp-block-columns { margin-bottom: 0; position: relative; z-index: 1; }
.bk-hero .bk-hero-media { align-self: flex-end; }
.bk-hero .bk-hero-media figure { margin-bottom: 0 !important; }
.bk-hero .bk-hero-media img { display: block; width: 100%; height: auto; }
.bk-hero .bk-hero-copy { padding-bottom: var(--wp--preset--spacing--60); }
.bk-hero-home::before {
	content: ""; position: absolute; top: 0; right: 0; width: 55%; height: 100%; opacity: .22; pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 32L0 82V66l28 16 28-16v16L28 98z' fill='none' stroke='%235BE33B' stroke-width='1'/%3E%3C/svg%3E");
	-webkit-mask-image: linear-gradient(to left, #000 20%, transparent 95%); mask-image: linear-gradient(to left, #000 20%, transparent 95%);
}
.bk-featured-row .bk-featured { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 1.35rem; color: #cfd3d8; letter-spacing: -.02em; margin: 0; }
.bk-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-weight: 600; margin: 0; }
.bk-eyebrow a { text-decoration: none; color: inherit; }

/* =========================================================
   Dot-grid logo tile
   ========================================================= */
.bk-dotlogo {
	min-height: 260px; width: 100%; max-width: 260px; margin-inline: auto;
	background-image: radial-gradient(#cfcfcf 2.6px, transparent 3px); background-size: 40px 40px; background-position: center;
}
.bk-dotlogo figure { margin: 0 !important; background: #fff; padding: 8px; border-radius: 30px; }

/* =========================================================
   Framed photo (green offset outline)
   ========================================================= */
.bk-frame { position: relative; margin-right: 28px !important; margin-bottom: 28px !important; }
.bk-frame img { position: relative; z-index: 1; border-radius: 16px; box-shadow: 0 14px 40px rgba(0,0,0,.12); display: block; width: 100%; }
.bk-frame::after {
	content: ""; position: absolute; z-index: 0; inset: 52px -26px -26px 44px;
	border: 4px solid var(--wp--preset--color--accent); border-radius: 22px;
}

/* =========================================================
   Text link with green arrow (VISIT …  →)
   ========================================================= */
.bk-textlink a {
	text-transform: uppercase; letter-spacing: .06em; font-weight: 500; font-size: .95rem;
	text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 3px;
}
.bk-textlink a::after { content: "→"; color: var(--wp--preset--color--accent); margin-left: .55rem; display: inline-block; transition: transform .2s; border-bottom: 2px solid transparent; }
.bk-textlink a:hover::after { transform: translateX(4px); }
.has-text-align-center.bk-textlink a, .bk-textlink.has-text-align-center a { font-size: .85rem; }

/* =========================================================
   Video cover with play button
   ========================================================= */
.bk-video { border-radius: 16px; overflow: hidden; }
.bk-play { margin: 0; }
.bk-play a {
	display: inline-flex; align-items: center; justify-content: center; width: 150px; height: 150px; border-radius: 999px;
	background: rgba(60,60,60,.75); color: var(--wp--preset--color--accent); font-size: 64px; text-decoration: none; padding-left: 10px;
	transition: transform .2s ease, background .2s ease;
}
.bk-play a:hover { transform: scale(1.06); background: rgba(30,30,30,.85); color: var(--wp--preset--color--accent); }

/* =========================================================
   Cards
   ========================================================= */
.bk-shadow { box-shadow: 0 12px 40px rgba(17,24,39,.08); }
.bk-card { transition: transform .2s ease, box-shadow .2s ease; height: 100%; }
.bk-card:hover { transform: translateY(-4px); box-shadow: 0 18px 46px rgba(17,24,39,.12); }
.wp-block-column > .bk-card, .wp-block-column > .bk-testimonial, .wp-block-column > .bk-logo-card { height: 100%; }
.bk-vlogo-wrap { min-height: 90px; }
.bk-vlogo-wrap figure { margin: 0 !important; }
.bk-vlogo img { max-height: 84px; width: auto !important; max-width: 220px; object-fit: contain; }
.bk-vlogo-lg { margin: 0 !important; }
.bk-vlogo-lg img { max-height: 130px; width: auto !important; max-width: 280px; object-fit: contain; }
.bk-logo-card { min-height: 250px; }
.bk-ventures-cover .wp-block-cover__background { background: linear-gradient(110deg, rgba(0,0,0,.92) 0%, rgba(4,20,3,.85) 55%, rgba(30,90,18,.80) 100%) !important; opacity: 1 !important; }

/* Testimonials */
.bk-testimonial .bk-author { margin-top: auto !important; padding-top: 1.5rem; }
.bk-testimonial .bk-author p { margin: 0; line-height: 1.35; }
.bk-avatar { margin: 0 !important; flex: 0 0 46px; }
.bk-avatar img { border-radius: 999px; width: 46px !important; height: 46px !important; object-fit: cover; }
.bk-avatar-lg { margin: 0 !important; flex: 0 0 80px; }
.bk-avatar-lg img { border-radius: 999px; width: 80px !important; height: 80px !important; object-fit: cover; }

/* Stat cards */
.bk-overlap { position: relative; z-index: 2; margin-top: -110px !important; }
.bk-stat { position: relative; overflow: hidden; }
.bk-stat::before {
	content: ""; position: absolute; top: 20px; left: 20px; width: 60px; height: 60px;
	background-image: radial-gradient(#9CA3AF 1px, transparent 1.2px); background-size: 9px 9px; opacity: .8;
}
.bk-stat .bk-num { line-height: 1; }

/* Real impact ring decoration */
.bk-ring-bg { position: relative; overflow: hidden; }
.bk-ring-bg::before {
	content: ""; position: absolute; width: 620px; height: 620px; border-radius: 999px; border: 70px solid #f4f5f6;
	left: 50%; top: 52%; transform: translate(-50%, -30%); z-index: 0; pointer-events: none;
}
.bk-ring-bg > * { position: relative; z-index: 1; }

/* Guru: full-bleed image + overlapping card */
.bk-guru-wrap { overflow: hidden; }
.bk-guru { gap: 0 !important; }
.bk-guru-img { margin: 0 !important; }
.bk-guru-img img { border-radius: 0 16px 16px 0; width: 100%; display: block; min-height: 460px; object-fit: cover; }
.bk-guru-col { position: relative; z-index: 2; }
.bk-guru-card { margin-left: -160px; margin-right: max(1rem, calc((100vw - 1144px) / 2)); }

/* Follow band */
.bk-follow-card .wp-block-columns { margin: 0; }
.bk-follow-card figure { margin: 0 auto !important; }
.bk-social-bar { margin-top: 2.5rem !important; backdrop-filter: blur(4px); }
.bk-social-bar .wp-block-social-links { gap: .8rem; }
.bk-social-bar .wp-social-link { font-size: 22px; }

/* Lists */
.bk-list-white li { margin-bottom: .35rem; }

/* =========================================================
   Contact
   ========================================================= */
.bk-contact-card { max-width: 1144px; margin-inline: auto; }
.bk-contact-panel { height: 100%; }
.bk-contact-panel a { color: #fff; }
.bk-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; color: var(--wp--preset--color--ink); }
.bk-form .bk-full { grid-column: 1 / -1; }
.bk-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .2rem; }
.bk-form label .req { color: #dc2626; }
.bk-form input, .bk-form textarea {
	width: 100%; border: 0; border-bottom: 1.5px solid #9ca3af; padding: .55rem 0; font: inherit; font-size: 1rem; background: transparent; outline: none;
}
.bk-form input:focus, .bk-form textarea:focus { border-bottom-color: var(--wp--preset--color--accent); }
.bk-form textarea { min-height: 110px; resize: vertical; }
.bk-form .bk-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.bk-contact-form p:empty { display: none; }
.bk-form .bk-actions { grid-column: 1 / -1; text-align: right; }
.bk-form button {
	background: var(--wp--preset--color--accent); color: #000; border: 0; border-radius: 6px; padding: .9rem 2.2rem; cursor: pointer;
	font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 1rem;
}
.bk-form button:hover { background: #7CF060; }
.bk-form-msg { grid-column: 1 / -1; padding: .8rem 1rem; border-radius: 8px; background: var(--wp--preset--color--accent-soft); color: #14532d; font-weight: 500; }
.bk-form-msg.is-error { background: #fee2e2; color: #991b1b; }

/* =========================================================
   Blog cards
   ========================================================= */
.bk-post-card .wp-block-post-featured-image { margin: 0; }
.bk-post-card .wp-block-post-featured-image img { border-radius: 10px 10px 0 0; }
.bk-post-card .wp-block-post-title a { text-decoration: none; }
.bk-post-card .wp-block-post-terms a { text-decoration: none; }
.bk-post-card > .wp-block-group { padding-top: var(--wp--preset--spacing--40); }

/* =========================================================
   Footer
   ========================================================= */
.bk-footer { font-size: 1rem; }
.bk-footer a { text-decoration: none; }
.bk-footer a:hover { color: var(--wp--preset--color--accent); }
.bk-footer p { margin-block: 0 0.9rem; }
.bk-dotgrid { min-height: 120px; width: 120px;
	background-image: radial-gradient(#2E6B1E 1.4px, transparent 1.6px); background-size: 18px 18px; }
.bk-newsletter { gap: .5rem; }
.bk-newsletter .bk-newsletter-field { flex: 1 1 auto; margin: 0 !important; }
.bk-footer .wp-block-social-links { gap: .6rem; }

/* =========================================================
   Misc
   ========================================================= */
.bk-rounded img { border-radius: 16px; }
.has-hero-glow-gradient-background { background-color: #000; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
}
@media (max-width: 781px) {
	.bk-overlap { margin-top: -60px !important; }
	.bk-hero .bk-hero-media { max-width: 440px; margin-left: auto; margin-right: auto; }
	.bk-hero .bk-hero-copy { padding-bottom: 0; }
	.bk-hero h1 { font-size: 2.1rem !important; }
	.bk-hero-home::before { width: 100%; opacity: .12; }
	.bk-dotgrid, .bk-hide-mobile { display: none !important; }
	.bk-right { text-align: left; }
	.bk-reverse-mobile { flex-direction: column-reverse; }
	.bk-guru-card { margin: -60px 1rem 0 1rem; }
	.bk-guru-img img { border-radius: 0; min-height: 320px; }
	.bk-frame { margin-right: 22px !important; }
	.bk-form { grid-template-columns: 1fr; }
	.bk-contact-card { padding: 12px !important; }
	.bk-play a { width: 96px; height: 96px; font-size: 40px; }
	.bk-ring-bg::before { display: none; }
	.bk-follow-card { padding: 2rem !important; }
	.bk-follow-card figure img { width: 80px !important; }
}

/* Design refinements — 3 October 2026 */
.bk-card { display:flex; flex-direction:column; }
.bk-card > .bk-textlink { margin-top:auto!important; padding-top:1rem; }
.bk-vlogo-wrap { min-height:100px; height:100px; display:flex; align-items:center; }
.bk-vlogo img { max-height:80px!important; max-width:100%!important; object-fit:contain; }
.bk-textlink a { display:inline-flex; align-items:center; min-height:44px; }
.bk-header a:focus-visible, main a:focus-visible, .bk-footer a:focus-visible,
.bk-form input:focus-visible, .bk-form textarea:focus-visible, button:focus-visible {
 outline:3px solid #5BE33B; outline-offset:4px; border-radius:4px;
}
.bk-header .wp-block-navigation-item__content { min-height:44px; box-sizing:border-box; }
.bk-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { padding:10px 0!important; }
.bk-hero .bk-hero-media img { max-height:650px; object-fit:contain; object-position:center bottom; }
.bk-frame img, .bk-guru-img img { aspect-ratio:4/5; object-fit:cover; object-position:center 30%; }
.bk-guru-img img { max-height:650px; }
.bk-play.bk-channel-link a { width:auto; height:auto; min-height:52px; border-radius:8px; padding:16px 26px; font-size:18px; background:#5BE33B; color:#0b0b0b; font-weight:700; }
.bk-play.bk-channel-link a:hover { color:#0b0b0b; background:#7cf060; transform:none; }
.bk-form input, .bk-form textarea { box-sizing:border-box; min-height:48px; border-radius:0; }
.bk-form button { min-height:48px; }
.bk-follow-card .wp-block-columns { align-items:center!important; }
.bk-footer .wp-block-social-links a, .bk-social-bar .wp-block-social-links a { min-width:44px; min-height:44px; display:flex; align-items:center; justify-content:center; box-sizing:border-box; }
body.single .wp-block-post-featured-image img { width:100%; max-height:460px; object-fit:cover; object-position:center 30%; }
@media(max-width:1100px) {
 .bk-header > .wp-block-group { align-items:center!important; }
 .bk-header > .wp-block-group > .wp-block-group:first-child { padding-bottom:0!important; }
 .bk-header { padding-bottom:1rem!important; }
 .bk-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display:none!important; }
 .bk-header .wp-block-navigation__responsive-container-open { display:flex!important; padding:10px; }
 .bk-header .wp-block-site-title { font-size:1.2rem!important; }
}
@media(max-width:781px) {
 .bk-hero .bk-hero-media img { max-height:480px; }
 .bk-hero .bk-hero-media { max-width:380px; }
 .bk-reverse-mobile { flex-direction:column-reverse!important; }
 .bk-form { gap:24px; }
 .bk-contact-panel { height:auto; }
 .bk-card p.has-small-font-size { font-size:1rem!important; }
 .bk-follow-card .wp-block-column { flex-basis:100%!important; }
 .bk-follow-card .wp-block-columns { flex-wrap:wrap!important; gap:20px; text-align:center; }
 .bk-follow-card .wp-block-buttons { justify-content:center; }
 body.single .wp-block-post-featured-image img { max-height:340px; }
}
@media(prefers-reduced-motion:reduce) {
 .bk-card, .bk-play a, .bk-textlink a::after, .bk-header a { transition:none!important; }
 .bk-card:hover, .bk-textlink a:hover::after { transform:none!important; }
}

.bk-contact-panel h1 { font-size:2.125rem; }
.bk-guru-img img { aspect-ratio:16/9; min-height:0; max-height:560px; object-fit:cover; }
.bk-vlogo-wrap:has(img[src*="logo-cloudseo"]) { overflow:hidden; }
.bk-vlogo img[src*="logo-cloudseo"] { max-height:160px!important; width:160px!important; }

.bk-video { align-items:flex-end; padding:28px; }
@media(max-width:781px) {
 .bk-video { min-height:300px!important; }
 .bk-featured-row .bk-eyebrow { flex-basis:100%; }
 .bk-featured-row { gap:.8rem!important; }
}
